diff options
author | Saku Ytti <saku@ytti.fi> | 2018-04-26 00:31:21 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2018-04-26 00:31:21 +0300 |
commit | ce155146656ee8b5f06a175f793a9461c05134ee (patch) | |
tree | 29aee8d52d29f991970f0300963b0597f2cca7f9 /lib | |
parent | 377faa395d79c485ce9dfea6a0483067684d8ada (diff) |
fix rubocop being anal
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |