minor code style changes

This commit is contained in:
dhax 2017-09-27 17:42:14 +02:00
parent 4c4041a981
commit 232463e1db
11 changed files with 82 additions and 74 deletions

View file

@ -8,8 +8,7 @@ const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456
func randStringBytes(n int) string {
buf := make([]byte, n)
_, err := rand.Read(buf)
if err != nil {
if _, err := rand.Read(buf); err != nil {
panic(err)
}