diff options
author | Steve Kemp <steve@steve.org.uk> | 2013-05-15 14:10:37 +0100 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2013-05-15 14:10:37 +0100 |
commit | 0a1e1128f72ef8316a620f6f071f003d01bbe8c4 (patch) | |
tree | ebe29b020d8d4edff14fdcd7b1650fb998ba6f74 /bin/custodian-dequeue | |
parent | 06b787d93b08a917cb1ec66bb573108dc6e0de43 (diff) |
Correctly work if we have no settings file present.
Previously we'd try to find the setting "foo" like so:
@settings['foo'].to_i || 5
This would fail if the setting wasn't defined, because nil.to_i
results in 0. But we must call to_i otherwise we'll have issues
comparing strings/numbers.
Diffstat (limited to 'bin/custodian-dequeue')
0 files changed, 0 insertions, 0 deletions