1
0
Fork 0

refactor: applies linting.

This commit is contained in:
Ludovic Fernandez 2019-02-05 17:10:03 +01:00 committed by Traefiker Bot
parent 54ca0ce34f
commit 115ddc6a4a
20 changed files with 111 additions and 111 deletions

View file

@ -47,11 +47,12 @@ func (p *Provider) Provide(configurationChan chan<- config.Message, pool *safe.P
if p.Watch {
var watchItem string
if len(p.Directory) > 0 {
switch {
case len(p.Directory) > 0:
watchItem = p.Directory
} else if len(p.Filename) > 0 {
case len(p.Filename) > 0:
watchItem = filepath.Dir(p.Filename)
} else {
default:
watchItem = filepath.Dir(p.TraefikFile)
}