aboutsummaryrefslogtreecommitdiff
path: root/fs_test.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-11-16 15:38:01 +0100
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-11-16 18:09:28 +0100
commit32793db72d04141d333eb04ce60170db6e79e6d2 (patch)
tree69735778f01c65ea864e696bec9fa08e83d85378 /fs_test.go
parentAdd Client.MaxConnDuration (diff)
downloadfasthttp-32793db72d04141d333eb04ce60170db6e79e6d2.tar.gz
fasthttp-32793db72d04141d333eb04ce60170db6e79e6d2.tar.bz2
fasthttp-32793db72d04141d333eb04ce60170db6e79e6d2.zip
Run golangci-lint using a Github Action
Diffstat (limited to 'fs_test.go')
-rw-r--r--fs_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs_test.go b/fs_test.go
index 19d1f30..539c1b9 100644
--- a/fs_test.go
+++ b/fs_test.go
@@ -100,7 +100,7 @@ func TestPathNotFoundFunc(t *testing.T) {
t.Parallel()
testPathNotFound(t, func(ctx *RequestCtx) {
- ctx.WriteString("Not found hehe")
+ ctx.WriteString("Not found hehe") //nolint:errcheck
})
}
@@ -538,14 +538,14 @@ func TestFileLock(t *testing.T) {
filePath := fmt.Sprintf("foo/bar/%d.jpg", i)
lock := getFileLock(filePath)
lock.Lock()
- lock.Unlock()
+ lock.Unlock() // nolint:staticcheck
}
for i := 0; i < 10; i++ {
filePath := fmt.Sprintf("foo/bar/%d.jpg", i)
lock := getFileLock(filePath)
lock.Lock()
- lock.Unlock()
+ lock.Unlock() // nolint:staticcheck
}
}