Skip to content

Commit

Permalink
Merge pull request #10 from mjtrangoni/fix-golangci
Browse files Browse the repository at this point in the history
Fix two golangci-lint issues
  • Loading branch information
gen2brain authored Mar 8, 2020
2 parents 3c61c04 + 45bb0ce commit ea463ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/dist
/keepalived_exporter
3 changes: 1 addition & 2 deletions collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (k *KACollector) text() ([]KAStats, error) {
}

if len(data) == len(stats) {
for idx, _ := range data {
for idx := range data {
st := KAStats{}
st.Data = data[idx]
st.Stats = stats[idx]
Expand Down Expand Up @@ -450,7 +450,6 @@ func (k *KACollector) parseStats() ([]Stats, error) {
if instance != "" {
data = append(data, dt)
dt = Stats{}
instance = ""
}

sp := strings.Split(strings.TrimSpace(line), prop)
Expand Down

0 comments on commit ea463ed

Please sign in to comment.