1
0
Fork 0

Small code enhancements on providers

This commit is contained in:
Vincent Demeester 2018-08-01 16:58:03 +02:00 committed by Traefiker Bot
parent 6f6ebb8025
commit 43d22d7a2f
6 changed files with 9 additions and 16 deletions

View file

@ -174,10 +174,6 @@ func (p *Provider) getWeight(tags []string) int {
// Base functions
func (p *Provider) hasAttribute(name string, tags []string) bool {
return hasTag(p.getPrefixedName(name), tags)
}
func (p *Provider) getAttribute(name string, tags []string, defaultValue string) string {
return getTag(p.getPrefixedName(name), tags, defaultValue)
}