Navigation Menu

Skip to content

Commit

Permalink
Revert "Stop to use "unless ... else ...""
Browse files Browse the repository at this point in the history
This reverts commit 7fb9c53.
@random is tribool, so this change breaks the behaviour.
  • Loading branch information
piroor committed Apr 15, 2015
1 parent 7fb9c53 commit 7137264
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?
if @random
unless @random.nil?
@random
else
not write?
Expand Down

0 comments on commit 7137264

Please sign in to comment.