Skip to content

Commit

Permalink
Removed needless assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Dec 5, 2023
1 parent ed59dbb commit a561ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ which = lambda { |c|
MAKE = ENV['MAKE'] || %w[gmake make].find(&which)
BUNDLE = ENV['BUNDLE'] || %w[bundle].find(&which)

PKG_VERSION = version = File.foreach(File.join(__dir__, "lib/json/version.rb")) do |line|
PKG_VERSION = File.foreach(File.join(__dir__, "lib/json/version.rb")) do |line|
/^\s*VERSION\s*=\s*'(.*)'/ =~ line and break $1
end rescue nil

Expand Down

0 comments on commit a561ed9

Please sign in to comment.