From d2c9d9bb0ab10f709a46247a061fc32acae01add Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 8 Jan 2019 11:44:36 +0000 Subject: [PATCH] fix: lint License: MIT Signed-off-by: Henrique Dias --- cmd/config_import.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/config_import.go b/cmd/config_import.go index 4f03c0d3..3463c2f8 100644 --- a/cmd/config_import.go +++ b/cmd/config_import.go @@ -51,9 +51,10 @@ database.`, checkErr(err) var rawAuther interface{} - rawAuther = file.Auther if filepath.Ext(args[0]) != ".json" { rawAuther = cleanUpInterfaceMap(file.Auther.(map[interface{}]interface{})) + } else { + rawAuther = file.Auther } var auther auth.Auther