mirror of
https://github.com/pgsty/minio.git
synced 2026-08-08 15:23:29 +03:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user