1
0
mirror of https://github.com/go-task/task.git synced 2025-03-17 21:08:01 +02:00

fix: remove duplicated quotes

This commit is contained in:
Pete Davison 2023-06-27 09:52:18 +00:00 committed by Andrey Nering
parent 0bf5fab9c0
commit 4de2ccea59

View File

@ -105,10 +105,7 @@ type TaskCancelledByUserError struct {
}
func (err *TaskCancelledByUserError) Error() string {
return fmt.Sprintf(
`task: Task "%q" cancelled by user`,
err.TaskName,
)
return fmt.Sprintf(`task: Task %q cancelled by user`, err.TaskName)
}
func (err *TaskCancelledByUserError) Code() int {
@ -122,7 +119,7 @@ type TaskCancelledNoTerminalError struct {
func (err *TaskCancelledNoTerminalError) Error() string {
return fmt.Sprintf(
`task: Task "%q" cancelled because it has a prompt and the environment is not a terminal. Use --yes (-y) to run anyway.`,
`task: Task %q cancelled because it has a prompt and the environment is not a terminal. Use --yes (-y) to run anyway.`,
err.TaskName,
)
}