Commit 0dce21d6 authored by Ed Reel's avatar Ed Reel

Remove redundant conditional

parent f1296b07
......@@ -56,7 +56,7 @@ rescue Docopt::Exit => e
puts "Could not understand \"crew #{ARGV.join(' ')}\".".lightred
cmds = ["build", "download", "files", "help", "install", "remove", "search", "update", "upgrade", "whatprovides"]
# Looking for similar commands
if ARGV.size >= 1 and not cmds.include?(ARGV[0]) then
if not cmds.include?(ARGV[0]) then
similar = cmds.select {|word| edit_distance(ARGV[0], word) < 4}
if not similar.empty? then
puts "Did you mean?"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment