From 2046d491a7a61e13e88d2f3ae59537837d34de1f Mon Sep 17 00:00:00 2001 From: avadesian Date: Thu, 27 May 2021 11:53:51 +0800 Subject: [PATCH] reformat import --- routers/api/v1/repo/repo.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 0258676ad..a0ea2166f 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -6,6 +6,10 @@ package repo import ( + "fmt" + "net/http" + "strings" + "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/git" @@ -17,9 +21,6 @@ import ( "code.gitea.io/gitea/modules/validation" "code.gitea.io/gitea/routers/api/v1/utils" repo_service "code.gitea.io/gitea/services/repository" - "fmt" - "net/http" - "strings" ) var searchOrderByMap = map[string]map[string]models.SearchOrderBy{ @@ -216,7 +217,7 @@ func Search(ctx *context.APIContext) { }) } results[i] = repo.APIFormat(accessMode) - results[i].TimeSinceUnixUpdatedHtml = timeutil.TimeSinceUnix(repo.UpdatedUnix,ctx.Language()) + results[i].TimeSinceUnixUpdatedHtml = timeutil.TimeSinceUnix(repo.UpdatedUnix, ctx.Language()) if repo.PrimaryLanguage != nil { results[i].PrimaryLanguage = repo.PrimaryLanguage.Language results[i].PrimaryLanguageColor = repo.PrimaryLanguage.Color