Skip to content

Commit

Permalink
nit: set the default annotation of the custom annotation enricher to …
Browse files Browse the repository at this point in the history
…the empty map so that it doesn't crash if its run as a noop
  • Loading branch information
northdpole authored and andream16 committed Oct 25, 2024
1 parent d538aa9 commit ecacba3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/enrichers/custom-annotation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ func run(name, annotations string) error {
}

func main() {
flag.StringVar(&annotations, "annotations", enrichers.LookupEnvOrString("ANNOTATIONS", ""), "what are the annotations this enricher will add to the issues")
flag.StringVar(&annotations, "annotations", enrichers.LookupEnvOrString("ANNOTATIONS", "{}"), "what are the annotations this enricher will add to the issues")
flag.StringVar(&name, "annotation-name", enrichers.LookupEnvOrString("NAME", defaultName), "what is the name this enricher will masquerade as")

if err := enrichers.ParseFlags(); err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit ecacba3

Please sign in to comment.