Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Jun 28, 2024
1 parent c96a47e commit b8c5d28
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/react_on_rails/packer_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ def self.using_packer?
end

def self.using_shakapacker_const?
return @using_shakapacker if defined?(@using_shakapacker)
return @using_shakapacker_const if defined?(@using_shakapacker_const)

@using_shakapacker = ReactOnRails::Utils.gem_available?("shakapacker") &&
shakapacker_version_requirement_met?([7, 0, 0])
@using_shakapacker_const = ReactOnRails::Utils.gem_available?("shakapacker") &&
shakapacker_version_requirement_met?([7, 0, 0])
end

def self.using_webpacker_const?
return @using_webpacker if defined?(@using_webpacker)
return @using_webpacker_const if defined?(@using_webpacker_const)

@using_webpacker = (ReactOnRails::Utils.gem_available?("shakapacker") &&
@using_webpacker_const = (ReactOnRails::Utils.gem_available?("shakapacker") &&
shakapacker_version_as_array[0] <= 6) ||
ReactOnRails::Utils.gem_available?("webpacker")
ReactOnRails::Utils.gem_available?("webpacker")
end

def self.packer_type
Expand Down

0 comments on commit b8c5d28

Please sign in to comment.