Small code enhancements on providers
This commit is contained in:
parent
6f6ebb8025
commit
43d22d7a2f
6 changed files with 9 additions and 16 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue