Skip to content

Commit

Permalink
provider/librato: Fixing some go vet issues for the
Browse files Browse the repository at this point in the history
`resourceLibratoAlertConditionsHash`
  • Loading branch information
stack72 committed Aug 31, 2016
1 parent a6c55dd commit 32ad221
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builtin/providers/librato/resource_librato_alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,17 @@ func resourceLibratoAlertConditionsHash(v interface{}) int {

source, present := m["source"]
if present {
buf.WriteString(fmt.Sprintf("%f-", source.(string)))
buf.WriteString(fmt.Sprintf("%s-", source.(string)))
}

detect_reset, present := m["detect_reset"]
if present {
buf.WriteString(fmt.Sprintf("%f-", detect_reset.(bool)))
buf.WriteString(fmt.Sprintf("%t-", detect_reset.(bool)))
}

duration, present := m["duration"]
if present {
buf.WriteString(fmt.Sprintf("%f-", duration.(int)))
buf.WriteString(fmt.Sprintf("%d-", duration.(int)))
}

threshold, present := m["threshold"]
Expand All @@ -132,7 +132,7 @@ func resourceLibratoAlertConditionsHash(v interface{}) int {

summary_function, present := m["summary_function"]
if present {
buf.WriteString(fmt.Sprintf("%f-", summary_function.(string)))
buf.WriteString(fmt.Sprintf("%s-", summary_function.(string)))
}

return hashcode.String(buf.String())
Expand Down

0 comments on commit 32ad221

Please sign in to comment.