Skip to content

Commit

Permalink
Remove unecessary initialization to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Miller committed Mar 16, 2013
1 parent d426e94 commit cb90e11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/urban/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def generate_output(entry, options)

def parse(args)
options = OpenStruct.new
options.random, options.all, options.version, options.help = false

options_parser = OptionParser.new do |o|
o.on('-a', '--all') { options.all = true }
Expand All @@ -74,7 +73,7 @@ def lookup(options)
case
when options.random then dictionary.random
when options.search then dictionary.search(options.phrase)
else OpenStruct.new :definitions => false
else OpenStruct.new
end
end

Expand Down

0 comments on commit cb90e11

Please sign in to comment.