mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-26 09:11:01 +00:00
Style: Yaml -> YAML
This commit is contained in:
parent
74975b8411
commit
e8997f7cd9
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ func (m *metricMapper) initFromString(fileContents string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *metricMapper) initFromYamlString(fileContents string) error {
|
func (m *metricMapper) initFromYAMLString(fileContents string) error {
|
||||||
|
|
||||||
var n metricMapper
|
var n metricMapper
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ func (m *metricMapper) initFromFile(fileName string) error {
|
||||||
}
|
}
|
||||||
switch strings.ToLower(filepath.Ext(fileName)) {
|
switch strings.ToLower(filepath.Ext(fileName)) {
|
||||||
case ".yaml", ".yml":
|
case ".yaml", ".yml":
|
||||||
return m.initFromYamlString(string(mappingStr))
|
return m.initFromYAMLString(string(mappingStr))
|
||||||
default:
|
default:
|
||||||
return m.initFromString(string(mappingStr))
|
return m.initFromString(string(mappingStr))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue