diff options
author | Steve Kemp <steve@steve.org.uk> | 2016-04-22 11:29:51 +0300 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2016-04-22 11:29:51 +0300 |
commit | 8990eefd051d0ea58b9f83bdf33cb5986369640c (patch) | |
tree | f6bd79e435bf8397b52aaa0636dfc585d1fdd0b8 /lib | |
parent | d80703942714155a0d04e4ebbb5deab290e1665a (diff) |
Deleted trailing whitespace.
Made minor formatting cleanups
Diffstat (limited to 'lib')
-rw-r--r-- | lib/custodian/util/tftp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/util/tftp.rb b/lib/custodian/util/tftp.rb index 3028874..c012a82 100644 --- a/lib/custodian/util/tftp.rb +++ b/lib/custodian/util/tftp.rb @@ -13,13 +13,13 @@ module Custodian # Store hostname and port # def initialize(hostname, port=69) - + raise ArgumentError, 'Hostname must not be nil' if hostname.nil? raise ArgumentError, 'Hostname must be a String' unless hostname.kind_of?(String) raise ArgumentError, 'Port must be a number' unless port.to_i > 0 @hostname = hostname - @port = port.to_i + @port = port.to_i end # |