From a59af8ce82b67529c85795908a94686b318fba7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=BE=B7?= Date: Thu, 30 Aug 2018 11:01:10 +0800 Subject: [PATCH] fix gofmt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈德 --- src/common/dao/repository.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/common/dao/repository.go b/src/common/dao/repository.go index fd85f16b5..df50d3eb2 100644 --- a/src/common/dao/repository.go +++ b/src/common/dao/repository.go @@ -22,16 +22,16 @@ import ( "github.com/goharbor/harbor/src/common/models" ) -var orderMap = map[string]string { - "name": "name asc", - "+name": "name asc", - "-name": "name desc", - "creation_time": "creation_time asc", +var orderMap = map[string]string{ + "name": "name asc", + "+name": "name asc", + "-name": "name desc", + "creation_time": "creation_time asc", "+creation_time": "creation_time asc", "-creation_time": "creation_time desc", - "update_time": "update_time asc", - "+update_time": "update_time asc", - "-update_time": "update_time desc", + "update_time": "update_time asc", + "+update_time": "update_time asc", + "-update_time": "update_time desc", } // AddRepository adds a repo to the database.