diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-13 23:25:46 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-13 23:25:46 +0000 |
commit | 021bfa5d6343e0d0b63fe16180a190c27c12a529 (patch) | |
tree | e9c40a8b0dfe95bf70b644d51e7beb261549e273 /bin/custodian-enqueue | |
parent | 57d324f3b4148dd6f39a3c8d2936989fde4b14be (diff) |
Be explicit that nil lines are OK.
Diffstat (limited to 'bin/custodian-enqueue')
-rwxr-xr-x | bin/custodian-enqueue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index a023792..8c1cb71 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -239,17 +239,17 @@ class MonitorConfig # def parse_line( line ) - line.chomp! + line.chomp! if ( !line.nil? ) # # A blank line, or a comment may be skipped. # - return if ( ( line =~ /^#/ ) || ( line.length < 1 ) ) + return nil if ( ( line.nil? ) || ( line =~ /^#/ ) || ( line.length < 1 ) ) # # The specification of mauve-server to which we should raise our alerts to. # - return if ( line =~ /Mauve\s+server(.*)source/ ) + return nil if ( line =~ /Mauve\s+server(.*)source/ ) # |