Skip to content

Commit dbb2c56

Browse files
author
Andreas Kluth
committed
Housekeeping.
1 parent 63ead1d commit dbb2c56

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cookie_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ func Test_ReadCookieValue(t *testing.T) {
4545
a.True(found)
4646
a.Equal("", v)
4747

48-
v, found = ReadCookieValue(http.Header{"Cookie": {";"}}, "foo")
48+
_, found = ReadCookieValue(http.Header{"Cookie": {";"}}, "foo")
4949
a.False(found)
5050

51-
v, found = ReadCookieValue(http.Header{"Cookie": {""}}, "foo")
51+
_, found = ReadCookieValue(http.Header{"Cookie": {""}}, "foo")
5252
a.False(found)
5353

54-
v, found = ReadCookieValue(http.Header{}, "foo")
54+
_, found = ReadCookieValue(http.Header{}, "foo")
5555
a.False(found)
5656
}

logstash_formatter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (f *LogstashFormatter) FormatWithPrefix(entry *logrus.Entry, prefix string)
7979

8080
serialized, err := json.Marshal(fields)
8181
if err != nil {
82-
return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
82+
return nil, fmt.Errorf("failed to marshal fields to JSON, %v", err)
8383
}
8484
return append(serialized, '\n'), nil
8585
}

0 commit comments

Comments
 (0)