summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2016-03-16 10:28:29 -0700
committerTim Smith <tsmith84@gmail.com>2016-03-16 10:28:29 -0700
commitb7ac062212c038c23226a64bea5acb77d95a0775 (patch)
tree5c91c6fb283541acdae051973b25a7326ebbb817 /lib
parent0b831a7679bd827657146b0c182dbbb8a27f45a8 (diff)
downloadmixlib-cli-b7ac062212c038c23226a64bea5acb77d95a0775.tar.gz
Resolve chefstyle warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/mixlib/cli.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/mixlib/cli.rb b/lib/mixlib/cli.rb
index b3f108e..887d05f 100644
--- a/lib/mixlib/cli.rb
+++ b/lib/mixlib/cli.rb
@@ -231,15 +231,15 @@ module Mixlib
opt_args = build_option_arguments(opt_val)
opt_method = case opt_val[:on]
- when :on
- :on
- when :tail
- :on_tail
- when :head
- :on_head
- else
- raise ArgumentError, "You must pass :on, :tail, or :head to :on"
- end
+ when :on
+ :on
+ when :tail
+ :on_tail
+ when :head
+ :on_head
+ else
+ raise ArgumentError, "You must pass :on, :tail, or :head to :on"
+ end
parse_block =
Proc.new() do |c|