From b7ca9f029440c9b29a383cc21f859701c9268280 Mon Sep 17 00:00:00 2001 From: Zachary Huff Date: Sat, 27 Jul 2019 17:53:06 -0400 Subject: [PATCH] Fix formatting in profile --- service/profile/profile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/profile/profile.go b/service/profile/profile.go index 53ae037fa..2d7831f2c 100644 --- a/service/profile/profile.go +++ b/service/profile/profile.go @@ -11,6 +11,7 @@ import ( "encoding/base64" "encoding/json" "encoding/pem" + "fmt" "io" "io/ioutil" "os" @@ -18,7 +19,6 @@ import ( "path/filepath" "runtime" "runtime/debug" - "strconv" "strings" "sync" "time" @@ -259,7 +259,7 @@ func (p *Profile) writeAuth() (pth string, err error) { authData := strings.Join([]string{ authToken, - strconv.Itoa(int(time.Now().Unix())), + fmt.Sprintf("%d", time.Now().Unix()), password, }, "")