We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6231bf4 commit 75ccccfCopy full SHA for 75ccccf
caddy/hotreload.go
@@ -55,11 +55,8 @@ func (f *FrankenPHPModule) configureHotReload(app *FrankenPHPApp) error {
55
}
56
57
func (f *FrankenPHPModule) unmarshalHotReload(d *caddyfile.Dispenser) error {
58
- patterns := d.RemainingArgs()
59
- if len(patterns) > 0 {
60
- f.HotReload = &hotReloadConfig{
61
- Watch: patterns,
62
- }
+ f.HotReload = &hotReloadConfig{
+ Watch: d.RemainingArgs(),
63
64
65
for d.NextBlock(1) {
@@ -81,10 +78,6 @@ func (f *FrankenPHPModule) unmarshalHotReload(d *caddyfile.Dispenser) error {
81
78
return d.ArgErr()
82
79
83
80
84
- if f.HotReload == nil {
85
- f.HotReload = &hotReloadConfig{}
86
87
-
88
f.HotReload.Watch = append(f.HotReload.Watch, patterns...)
89
90
default:
0 commit comments