summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/byteback-receive2
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