Skip to content

Commit f4313ee

Browse files
authored
Merge pull request hoisie#167 from ghost/patch-1
remove hex assignment and just return the value directly from fmt.Sprint...
2 parents 2ba703e + db98d4b commit f4313ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ func getCookieSig(key string, val []byte, timestamp string) string {
117117
hm.Write(val)
118118
hm.Write([]byte(timestamp))
119119

120-
hex := fmt.Sprintf("%02x", hm.Sum(nil))
121-
return hex
120+
return fmt.Sprintf("%02x", hm.Sum(nil))
122121
}
123122

124123
func (ctx *Context) SetSecureCookie(name string, val string, age int64) {

0 commit comments

Comments
 (0)