mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Fix typos related to ErrTaskDoesNotExist error (#20118)
Fixes: f2a3abc683 ("Move migrating repository from frontend to backend (#6200)")
			
			
This commit is contained in:
		| @@ -156,14 +156,14 @@ type ErrTaskDoesNotExist struct { | |||||||
| 	Type   structs.TaskType | 	Type   structs.TaskType | ||||||
| } | } | ||||||
|  |  | ||||||
| // IsErrTaskDoesNotExist checks if an error is a ErrTaskIsNotExist. | // IsErrTaskDoesNotExist checks if an error is a ErrTaskDoesNotExist. | ||||||
| func IsErrTaskDoesNotExist(err error) bool { | func IsErrTaskDoesNotExist(err error) bool { | ||||||
| 	_, ok := err.(ErrTaskDoesNotExist) | 	_, ok := err.(ErrTaskDoesNotExist) | ||||||
| 	return ok | 	return ok | ||||||
| } | } | ||||||
|  |  | ||||||
| func (err ErrTaskDoesNotExist) Error() string { | 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) | 		err.ID, err.RepoID, err.Type) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user