Skip to content

Commit f166c46

Browse files
committed
Lint
1 parent 4603809 commit f166c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/network_config/interfaces.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def self.parse_file(_filename, contents)
245245
end
246246

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

251251
# Generate an array of sections

0 commit comments

Comments
 (0)