Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/init/viper/viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func Init() {

global.CONF = serverConfig
global.CONF.Base.InstallDir = baseDir
global.CONF.Base.IsDemo = v.GetBool("system.is_demo")
global.CONF.Base.IsIntl = v.GetBool("system.is_intl")
global.CONF.Base.IsDemo = v.GetBool("base.is_demo")
global.CONF.Base.IsIntl = v.GetBool("base.is_intl")
global.CONF.Base.Version = version
global.CONF.Base.Username = username
global.CONF.Base.Password = password
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no major errors or inconsistencies in this code. It appears to be following good practices for initialisation of variables and parameters, which is appropriate considering the year it was written (2021). If you have specific concerns related to performance, efficiency, data security, etc., please provide more details so that I can address them accurately and help optimize the code accordingly.

Remember, changes should ideally be made through pull requests and follow proper processes as outlined on our official GitHub repository guidelines.

Expand Down
Loading