From 645c7c9a929a33828c3b44dda56d8a6c419199ba Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Mon, 4 Dec 2017 14:09:27 -0800 Subject: [PATCH] auth: use "sort.Strings" instead of StringSlice Signed-off-by: Gyuho Lee --- auth/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/store.go b/auth/store.go index ddb6f7383..952565096 100644 --- a/auth/store.go +++ b/auth/store.go @@ -458,7 +458,7 @@ func (as *authStore) UserGrantRole(r *pb.AuthUserGrantRoleRequest) (*pb.AuthUser } user.Roles = append(user.Roles, r.Role) - sort.Sort(sort.StringSlice(user.Roles)) + sort.Strings(user.Roles) putUser(tx, user)