From 9369adb93d119ca349add2b7f80d6a9b4bbd6703 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Mon, 22 Jun 2015 22:26:41 -0700 Subject: Fix Style/NonNilCheck cop violations --- spec/support/matchers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/support') diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index f8cce2ea5a3..5f0c270f967 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -1,6 +1,6 @@ RSpec::Matchers.define :be_valid_commit do match do |actual| - actual != nil + !actual.nil? actual.id == ValidCommit::ID actual.message == ValidCommit::MESSAGE actual.author_name == ValidCommit::AUTHOR_FULL_NAME -- cgit v1.2.3