From d789d3646c086cec819f718c86a91f9a49c01dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Van=C4=9Bk?= Date: Fri, 24 Jun 2022 15:51:37 +0200 Subject: [PATCH] Fix typos related to ErrTaskDoesNotExist error (#20118) Fixes: f2a3abc683ad ("Move migrating repository from frontend to backend (#6200)") --- models/task.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/task.go b/models/task.go index cabb96c60831..67f04d9562f4 100644 --- a/models/task.go +++ b/models/task.go @@ -156,14 +156,14 @@ type ErrTaskDoesNotExist struct { Type structs.TaskType } -// IsErrTaskDoesNotExist checks if an error is a ErrTaskIsNotExist. +// IsErrTaskDoesNotExist checks if an error is a ErrTaskDoesNotExist. func IsErrTaskDoesNotExist(err error) bool { _, ok := err.(ErrTaskDoesNotExist) return ok } func (err ErrTaskDoesNotExist) Error() string { - return fmt.Sprintf("task is not exist [id: %d, repo_id: %d, type: %d]", + return fmt.Sprintf("task does not exist [id: %d, repo_id: %d, type: %d]", err.ID, err.RepoID, err.Type) }