Skip to content

Commit

Permalink
✨ 完善加载配置
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 9, 2021
1 parent 60c29b2 commit 3005ee5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin_manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,9 @@ func loadConfig() {
data, err1 := io.ReadAll(f)
if err1 == nil {
if len(data) > 0 {
config.Unmarshal(data)
return
if config.Unmarshal(data) == nil {
return
}
}
}
}
Expand Down

0 comments on commit 3005ee5

Please sign in to comment.