Skip to content

Commit

Permalink
fix: nil pointer deref in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alik Khilazhev <[email protected]>
  • Loading branch information
alikhil committed Nov 30, 2022
1 parent f1b391f commit 0241111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func (r *Receiver) search(project, issueLabel string) (*jira.Issue, bool, error)

func (r *Receiver) findIssueToReuse(project string, issueGroupLabel string) (*jira.Issue, bool, error) {

if !*r.conf.ReopenEnabled {
if r.conf.ReopenEnabled != nil && !*r.conf.ReopenEnabled {
level.Debug(r.logger).Log("msg", "reopening disabled, skipping search for existing issue")
return nil, false, nil
}
Expand Down

0 comments on commit 0241111

Please sign in to comment.