Skip to content

Commit

Permalink
fix NPE - values are nil if unset
Browse files Browse the repository at this point in the history
  • Loading branch information
wr0ngway committed Jul 22, 2021
1 parent 3ad434b commit 4c5ac74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kubetruth/ctapi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def parameters(project:, environment: "default")
cleaned&.[](:results)&.each do |param|
if param[:secret]
param[:values].each do |k, v|
v[:value] = "<masked>"
v[:value] = "<masked>" unless v.nil?
end
end
end
Expand Down

0 comments on commit 4c5ac74

Please sign in to comment.