Skip to content

Commit

Permalink
Fix golangci-lint findings
Browse files Browse the repository at this point in the history
Fix findings by golangci-lint run.
  • Loading branch information
HeavyWombat committed Jan 22, 2022
1 parent d901289 commit 3dc289c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const (
typeMap = "map"
typeSimpleList = "list"
typeComplexList = "complex-list"
typeString = "string"
)

// GetType returns the type of the input value with a YAML specific view
Expand Down
4 changes: 3 additions & 1 deletion input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ var _ = Describe("Input test cases", func() {
}

w.WriteHeader(200)
w.Write(data)
if _, err := w.Write(data); err != nil {
Fail(err.Error())
}
})

server = httptest.NewServer(r)
Expand Down

0 comments on commit 3dc289c

Please sign in to comment.