api/trackers: fix fmt.Errorf arguments

Fixes the following:

    api/trackers/import.go:340:13: fmt.Errorf call needs 1 arg but has 2 args
This commit is contained in:
Simon Ser 2023-08-01 12:54:59 +00:00 committed by Drew DeVault
parent d8cf6aed69
commit 366713a3c2
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ func importTrackerDump(ctx context.Context, trackerID int, dump io.Reader, ourUp
eventType |= eventTypeMap[etype]
}
if eventType == 0 {
return fmt.Errorf("failed to import ticket #%d: invalid ticket event", ticket.ID, eventType)
return fmt.Errorf("failed to import ticket #%d: invalid ticket event", ticket.ID)
}
if event.Participant != nil {