Skip to content

Commit 3dc289c

Browse files
committed
Fix golangci-lint findings
Fix findings by golangci-lint run.
1 parent d901289 commit 3dc289c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

common.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const (
3131
typeMap = "map"
3232
typeSimpleList = "list"
3333
typeComplexList = "complex-list"
34-
typeString = "string"
3534
)
3635

3736
// GetType returns the type of the input value with a YAML specific view

input_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ var _ = Describe("Input test cases", func() {
7171
}
7272

7373
w.WriteHeader(200)
74-
w.Write(data)
74+
if _, err := w.Write(data); err != nil {
75+
Fail(err.Error())
76+
}
7577
})
7678

7779
server = httptest.NewServer(r)

0 commit comments

Comments
 (0)