Skip to content

Commit

Permalink
Fix unconvert issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRichardson committed Feb 8, 2021
1 parent 7b6e1ea commit 7f51924
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 25 additions & 1 deletion .github/golangci-lint.config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
linters-settings:
gofmt:
simplify: true
govet:
disable-all: true
enable:
- asmdecl
- assign
- atomic
- bools
- buildtag
- copylocks
- httpresponse
- loopclosure
- lostcancel
- nilfunc
- printf
- shift
- stdmethods
- structtag
- tests
- unmarshal
- unreachable
- unsafeptr
- unusedresult
linters:
disable-all: true
enable:
- govet
- gofmt
- goimports
- ineffassign
- misspell
- unconvert
run:
timeout: 12m
timeout: 20m
skip-dirs:
- acceptancetests
2 changes: 1 addition & 1 deletion cmd/plugins/juju-wait-for/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (m *GenericScope) GetIdentValue(name string) (query.Box, error) {
case reflect.Int64:
return query.NewInteger(data.(int64)), nil
case reflect.Float64:
return query.NewFloat(float64(data.(float64))), nil
return query.NewFloat(data.(float64)), nil
case reflect.String:
return query.NewString(data.(string)), nil
case reflect.Bool:
Expand Down

0 comments on commit 7f51924

Please sign in to comment.