diff --git a/lib/ipaddress.rb b/lib/ipaddress.rb
index 19b526f3cb1186e5308dc0cc39680caa600af4b0..4f8c71f6a647dfd856ba32b2c0b84ffb1c0adda9 100644
--- a/lib/ipaddress.rb
+++ b/lib/ipaddress.rb
@@ -68,14 +68,14 @@ module IPAddress
   #
   def self.ntoa(uint)
     unless(uint.is_a? Numeric and uint <= 0xffffffff and uint >= 0)
-        raise(::ArgumentError, "not a long integer: #{uint.inspect}")
-      end
-      ret = []
-      4.times do 
-        ret.unshift(uint & 0xff)
-        uint >>= 8
-      end
-      ret.join('.')
+      raise(::ArgumentError, "not a long integer: #{uint.inspect}")
+    end
+    ret = []
+    4.times do 
+      ret.unshift(uint & 0xff)
+      uint >>= 8
+    end
+    ret.join('.')
   end
 
   #