diff options
Diffstat (limited to 'routers/web/user/task.go')
-rw-r--r-- | routers/web/user/task.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/web/user/task.go b/routers/web/user/task.go index 8e7b66ef95..c71d435233 100644 --- a/routers/web/user/task.go +++ b/routers/web/user/task.go @@ -9,7 +9,7 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/context" - jsoniter "github.com/json-iterator/go" + "code.gitea.io/gitea/modules/json" ) // TaskStatus returns task's status @@ -26,7 +26,6 @@ func TaskStatus(ctx *context.Context) { if task.Message != "" && task.Message[0] == '{' { // assume message is actually a translatable string - json := jsoniter.ConfigCompatibleWithStandardLibrary var translatableMessage models.TranslatableMessage if err := json.Unmarshal([]byte(message), &translatableMessage); err != nil { translatableMessage = models.TranslatableMessage{ |