Skip to content

Commit

Permalink
Do not use bang method. (#94)
Browse files Browse the repository at this point in the history
`compact!` will return `nil` when called on an empty array.
  • Loading branch information
oneiros authored Oct 18, 2022
1 parent 379d30b commit 8a02d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/hiera_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def files_including(key)
value: search_result[:value]
}
end
end.compact!
end.compact
end

def write_key(hierarchy_name, path, key, value, facts: {})
Expand Down

0 comments on commit 8a02d63

Please sign in to comment.