Skip to content

Commit 3ab3258

Browse files
committed
appease rubocop
1 parent d3ded0d commit 3ab3258

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require 'rails'
3+
require "rails"
44
Rails.env = "test"
55

66
require "bundler/gem_tasks"

lib/dockerfile-rails/scanner.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def scan_rails_app
1717

1818
# determine if the application is affected by the net-pop bug
1919
# https://github.com/ruby/ruby/pull/11006#issuecomment-2176562332
20-
if RUBY_VERSION == '3.3.3' && @gemfile.include?("net-pop")
21-
@netpopbug = parser.specs.find {|spec| spec.name == "net-pop"}.dependencies.empty?
20+
if RUBY_VERSION == "3.3.3" && @gemfile.include?("net-pop")
21+
@netpopbug = parser.specs.find { |spec| spec.name == "net-pop" }.dependencies.empty?
2222
end
2323
end
2424

@@ -94,8 +94,8 @@ def using_trilogy?
9494
end
9595

9696
### patches ###
97-
if RUBY_VERSION == '3.3.3'
98-
parser = Bundler::LockfileParser.new(Bundler.read_file("Gemfile.lock"))
97+
if RUBY_VERSION == "3.3.3"
98+
Bundler::LockfileParser.new(Bundler.read_file("Gemfile.lock"))
9999

100100
end
101101
end

0 commit comments

Comments
 (0)