Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hfrog committed Aug 17, 2024
1 parent 4603809 commit f166c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/network_config/interfaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def self.parse_file(_filename, contents)
end

def self.interface_order(name, rules)
(rules['rules'].map{ |entry| if name.match(entry.first) then entry.last end } + [rules['default']]).compact.first
(rules['rules'].map{ |entry| entry.last if name.match(entry.first) } + [rules['default']]).compact.first

Check failure on line 248 in lib/puppet/provider/network_config/interfaces.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/SpaceBeforeBlockBraces: Space missing to the left of {.
end

# Generate an array of sections
Expand Down

0 comments on commit f166c46

Please sign in to comment.