diff options
| author | Jamie Nguyen <j@jamielinux.com> | 2016-05-11 08:28:06 +0100 | 
|---|---|---|
| committer | Jamie Nguyen <j@jamielinux.com> | 2016-05-11 08:28:06 +0100 | 
| commit | 1df51bd2c3a3ee53834c89a074e56c361b051460 (patch) | |
| tree | eaf1eedf1ca36592a3db358a6b2b51c43695605d /bin | |
| parent | 89c2b36aaa3478fc0ad3742cddf66c2abae01b7c (diff) | |
Prevent accumulator from being set to Nil
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/byteback-receive | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/bin/byteback-receive b/bin/byteback-receive index 0d7d025..1326bba 100755 --- a/bin/byteback-receive +++ b/bin/byteback-receive @@ -116,7 +116,7 @@ end  # Make sure we don't get crazy option combinations.  #  n_modes = opts.keys.inject(0) do |s,m| -    s += 1 if  [:ping, :complete, :list].include?(m) +    [:ping, :complete, :list].include?(m) ? s += 1 : s  end  error('Please only choose one mode') unless n_modes == 1 | 
