diff options
Diffstat (limited to 'dashboard/app/reporting.go')
| -rw-r--r-- | dashboard/app/reporting.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dashboard/app/reporting.go b/dashboard/app/reporting.go index b73bab8ac..c5e6ff1e3 100644 --- a/dashboard/app/reporting.go +++ b/dashboard/app/reporting.go @@ -1288,11 +1288,12 @@ func findCrashForBug(c context.Context, bug *Bug) (*Crash, *db.Key, error) { return nil, nil, fmt.Errorf("no crashes") } crash, key := crashes[0], keys[0] - if bug.HeadReproLevel == ReproLevelC { + switch bug.HeadReproLevel { + case ReproLevelC: if crash.ReproC == 0 { log.Errorf(c, "bug '%v': has C repro, but crash without C repro", bug.Title) } - } else if bug.HeadReproLevel == ReproLevelSyz { + case ReproLevelSyz: if crash.ReproSyz == 0 { log.Errorf(c, "bug '%v': has syz repro, but crash without syz repro", bug.Title) } |
