From ce155146656ee8b5f06a175f793a9461c05134ee Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Thu, 26 Apr 2018 00:31:21 +0300 Subject: fix rubocop being anal --- lib/oxidized/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oxidized/version.rb b/lib/oxidized/version.rb index a5422fd..1ca2f55 100644 --- a/lib/oxidized/version.rb +++ b/lib/oxidized/version.rb @@ -4,7 +4,7 @@ module Oxidized def self.version_set version_full = %x(git describe --tags).chop rescue "" version = %x(git describe --tags --abbrev=0).chop rescue "" - if [version, version_full].none? &:empty? + if [version, version_full].none?(&:empty?) Oxidized.send(:remove_const, :VERSION) Oxidized.send(:remove_const, :VERSION_FULL) const_set(:VERSION, version) -- cgit v1.2.1