Skip to content

Commit

Permalink
chore: Update annotation.go to handle default value for GetDecodeB64
Browse files Browse the repository at this point in the history
  • Loading branch information
h0n9 committed Jun 5, 2024
1 parent c1a47aa commit b5da563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webhook/annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ func (a Annotations) GetOutput() (string, error) {
func (a Annotations) GetDecodeB64() (bool, error) {
value, err := a.getValue(AnnotationDecodeB64)
if err != nil {
return false, err
// default value and no error
return false, nil
}
return strconv.ParseBool(value)
}

0 comments on commit b5da563

Please sign in to comment.