From fce49136e8cd59940611b8510316e9cef59a5f86 Mon Sep 17 00:00:00 2001 From: Viktor Nikolaiev Date: Thu, 31 Aug 2017 10:30:48 +0300 Subject: [PATCH] fixed golint issues --- migration_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/migration_test.go b/migration_test.go index 7c3436ca..d58e1fb5 100644 --- a/migration_test.go +++ b/migration_test.go @@ -121,15 +121,15 @@ type EncryptedData []byte func (data *EncryptedData) Scan(value interface{}) error { if b, ok := value.([]byte); ok { - if len(b) < 3 || b[0] != '*' || b[1] != '*' || b[2] != '*'{ + if len(b) < 3 || b[0] != '*' || b[1] != '*' || b[2] != '*' { return errors.New("Too short") } *data = b[3:] return nil - } else { - return errors.New("Bytes expected") } + + return errors.New("Bytes expected") } func (data EncryptedData) Value() (driver.Value, error) {