Skip to content

Commit

Permalink
Fix linter deadline and wrong json annotation
Browse files Browse the repository at this point in the history
Was added the deadline time for linter and fixed the json annotation.
  • Loading branch information
faabiosr committed Aug 18, 2019
1 parent 41b5b99 commit e3e756d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ lint:
--enable=golint \
--enable=gofmt \
--enable=misspell \
--enable=vet ./...
--enable=vet ./... \
--deadline=60s
.PHONY: lint

# Run tests
Expand Down
2 changes: 1 addition & 1 deletion bolt.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type (
// BoltContent it's a structure of cached value
BoltContent struct {
Duration int64 `json:"duration"`
Data string `json:"data, omitempty"`
Data string `json:"data,omitempty"`
}
)

Expand Down
2 changes: 1 addition & 1 deletion file.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type (
// FileContent it's a structure of cached value
FileContent struct {
Duration int64 `json:"duration"`
Data string `json:"data, omitempty"`
Data string `json:"data,omitempty"`
}
)

Expand Down

0 comments on commit e3e756d

Please sign in to comment.