mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 07:51:38 +02:00
refactor(config): remove unnecessary indirection
This commit is contained in:
@@ -93,7 +93,7 @@ func Value() *config.Config {
|
||||
func (state *state) InitFromFile(filename string) error {
|
||||
data, err := os.ReadFile(common.ConfigPath)
|
||||
if err != nil {
|
||||
state.Config = *config.DefaultConfig()
|
||||
state.Config = config.DefaultConfig()
|
||||
return err
|
||||
}
|
||||
return state.Init(data)
|
||||
|
||||
Reference in New Issue
Block a user