Permalink
Browse files

Split double chomp into two calls. chomp! doesn't always return the

modified string (unlike chomp it returns nil if no modification
occurred).
  • Loading branch information...
1 parent c7f14d1 commit 6463b3321bf690cc740e7e0a7e8920545f248c29 @jheiss committed Oct 18, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 fios/ddnsreg
View
@@ -44,7 +44,8 @@ entry = nil
leases = {}
while line = sslsocket.gets
# Lines end with "\r\r\n", takes a double-chomp to clean them
- line.chomp!.chomp!
+ line.chomp!
+ line.chomp!
if line == '(lease'
parse = true
elsif parse

0 comments on commit 6463b33

Please sign in to comment.