quick/config: No need to use Data() with type assertion. (#1480)

Since input to quick.New() is a pointer the unmarshalled value
internally already has the value, subsequent type assertions
are not needed.

Thanks to Bala for finding this behavior.

Fixes #1475
This commit is contained in:
Harshavardhana
2016-05-04 20:22:15 -07:00
parent 9dccbd6478
commit f145e1042f
2 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ func initConfig() error {
return err
}
// Save the loaded config globally.
serverConfig = qc.Data().(*serverConfigV4)
serverConfig = srvCfg
// Set the version properly after the unmarshalled json is loaded.
serverConfig.Version = globalMinioConfigVersion
return nil