diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-05-04 05:55:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 05:55:35 +0200 |
commit | 377a0a20f01a62f15a1504a3bba6cf6cc0c98bea (patch) | |
tree | e86a1818f23be1605a4cd707fadc7dcdce546d18 /cmd/embedded.go | |
parent | Changelog for 1.19.3 (#24495) (#24506) (diff) | |
download | forgejo-377a0a20f01a62f15a1504a3bba6cf6cc0c98bea.tar.xz forgejo-377a0a20f01a62f15a1504a3bba6cf6cc0c98bea.zip |
Merge setting.InitXXX into one function with options (#24389)
This PR will merge 3 Init functions on setting packages as 1 and
introduce an options struct.
Diffstat (limited to 'cmd/embedded.go')
-rw-r--r-- | cmd/embedded.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/embedded.go b/cmd/embedded.go index cee8928ce0..3f849bea0a 100644 --- a/cmd/embedded.go +++ b/cmd/embedded.go @@ -106,8 +106,9 @@ func initEmbeddedExtractor(c *cli.Context) error { log.DelNamedLogger(log.DEFAULT) // Read configuration file - setting.InitProviderAllowEmpty() - setting.LoadCommonSettings() + setting.Init(&setting.Options{ + AllowEmpty: true, + }) patterns, err := compileCollectPatterns(c.Args()) if err != nil { |