From a7b60b21deaf7dbc3b5741be036bfb2a6679f1c8 Mon Sep 17 00:00:00 2001 From: Levi Gross Date: Tue, 10 Jun 2014 10:02:00 -0400 Subject: [PATCH] Fixed up if statement Signed-off-by: Levi Gross Docker-DCO-1.1-Signed-off-by: Levi Gross (github: levigross) --- utils/random.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/random.go b/utils/random.go index d4d33c690..907f28eec 100644 --- a/utils/random.go +++ b/utils/random.go @@ -8,8 +8,8 @@ import ( func RandomString() string { id := make([]byte, 32) - _, err := io.ReadFull(rand.Reader, id) - if err != nil { + + if _, err := io.ReadFull(rand.Reader, id); err != nil { panic(err) // This shouldn't happen } return hex.EncodeToString(id)