fixed golint/go vet

Change-Id: Id8aa01511f459d45f9dc3270e1d13b8682944016
This commit is contained in:
sm
2016-05-23 23:54:35 -07:00
parent f69efc8f36
commit 435e28966a
5 changed files with 28 additions and 11 deletions
+1
View File
@@ -69,6 +69,7 @@ func parseNamespace(path string) (string, error) {
return elems[0], nil
}
// FreshToken returns a random token string.
func FreshToken() string {
buf := &bytes.Buffer{}
io.Copy(buf, io.LimitReader(rand.Reader, 6))