Skip to content

Commit b65b40c

Browse files
committed
refactor(app): rename parameter
1 parent cd6175d commit b65b40c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ func (app *App) ReOpenLog() []error {
4444
return app.logFileMan.Reopen()
4545
}
4646

47-
func NewApp(params param.Params, setting *setting.Setting) (*App, []error) {
48-
if len(setting.PidFile) > 0 {
49-
errs := writePidFile(setting.PidFile)
47+
func NewApp(params param.Params, settings *setting.Setting) (*App, []error) {
48+
if len(settings.PidFile) > 0 {
49+
errs := writePidFile(settings.PidFile)
5050
if len(errs) > 0 {
5151
return nil, errs
5252
}
@@ -112,7 +112,7 @@ func NewApp(params param.Params, setting *setting.Setting) (*App, []error) {
112112
}
113113
}
114114

115-
if !setting.Quiet {
115+
if !settings.Quiet {
116116
go printAccessibleURLs(vhSvc, params)
117117
}
118118

0 commit comments

Comments
 (0)