Navigation Menu

Skip to content

Commit

Permalink
Stop to use "unless ... else ..."
Browse files Browse the repository at this point in the history
It confuses us.
  • Loading branch information
kou committed Apr 15, 2015
1 parent f8892dc commit 7fb9c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/single_step_definition.rb
Expand Up @@ -48,7 +48,7 @@ def write?
end

def random?
unless @random.nil?
if @random
@random
else
not write?
Expand Down

0 comments on commit 7fb9c53

Please sign in to comment.