Skip to content

Commit d789d36

Browse files
authored
Fix typos related to ErrTaskDoesNotExist error (#20118)
Fixes: f2a3abc ("Move migrating repository from frontend to backend (#6200)")
1 parent 48ef12b commit d789d36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/task.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ type ErrTaskDoesNotExist struct {
156156
Type structs.TaskType
157157
}
158158

159-
// IsErrTaskDoesNotExist checks if an error is a ErrTaskIsNotExist.
159+
// IsErrTaskDoesNotExist checks if an error is a ErrTaskDoesNotExist.
160160
func IsErrTaskDoesNotExist(err error) bool {
161161
_, ok := err.(ErrTaskDoesNotExist)
162162
return ok
163163
}
164164

165165
func (err ErrTaskDoesNotExist) Error() string {
166-
return fmt.Sprintf("task is not exist [id: %d, repo_id: %d, type: %d]",
166+
return fmt.Sprintf("task does not exist [id: %d, repo_id: %d, type: %d]",
167167
err.ID, err.RepoID, err.Type)
168168
}
169169

0 commit comments

Comments
 (0)