From e90f3c86aab484ea94d4278a493da7112ad357eb Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sat, 20 Apr 2013 14:52:43 +0200 Subject: [PATCH] Use long operator form in non boolean context --- lib/mutant/cli/classifier/method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mutant/cli/classifier/method.rb b/lib/mutant/cli/classifier/method.rb index 819ade59..45b17689 100644 --- a/lib/mutant/cli/classifier/method.rb +++ b/lib/mutant/cli/classifier/method.rb @@ -38,7 +38,7 @@ module Mutant def method scope_matcher.methods.detect do |method| method.name == method_name - end || raise("Cannot find #{method_name} for #{scope}") + end or raise("Cannot find #{method_name} for #{scope}") end memoize :method, :freezer => :noop