Permalink
Browse files

easier to understand order for the logic

  • Loading branch information...
markburns committed Mar 18, 2012
1 parent fc6ee76 commit 76eb3cdc4064960a3bf16f31928f0356f0c7e4d1
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/kaboom/platform.rb
View
@@ -47,10 +47,10 @@ def open_command
#
# Returns a String of the Item value.
def open(item)
- unless windows?
- system("#{open_command} '#{item.url.gsub("\'","'\\\\''")}'")
- else
+ if windows?
system("#{open_command} #{item.url.gsub("\'","'\\\\''")}")
+ else
+ system("#{open_command} '#{item.url.gsub("\'","'\\\\''")}'")
end
item.value

0 comments on commit 76eb3cd

Please sign in to comment.