Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Mar 29, 2020
1 parent f1b11b0 commit b8b900c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ linters:
- depguard
- dupl
- gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
Expand All @@ -32,10 +31,11 @@ linters:
disable:
- lll
- maligned
- goconst

linters-settings:
errcheck:
ignore: fmt:.*

run:
modules-download-mode: vendor
modules-download-mode: vendor
2 changes: 1 addition & 1 deletion decoder/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (graphPanel DashboardGraph) toOption() (row.Option, error) {
}

func (graphPanel *DashboardGraph) legend() ([]graph.LegendOption, error) {
var opts []graph.LegendOption
opts := make([]graph.LegendOption, 0, len(graphPanel.Legend))

for _, attribute := range graphPanel.Legend {
var opt graph.LegendOption
Expand Down

0 comments on commit b8b900c

Please sign in to comment.