Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2021-08-04 17:11:12 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2021-08-09 10:59:36 +0300
commit71a0beeb1e5a2edd121c6bb0e7de0d9528a92259 (patch)
treeef38157cd542429b67df6c7460094e6c2f90f9c4 /.golangci.yml
parentfc6d12cda72720dbea2eed1976f6012661646b1f (diff)
lint: Handle error returned by out.Flush
The change removes out.Flush from lint rules exclusion and fixes all the places where it causes the issue. It affects only gitaly-debug binary, so it has no impact on the production code. The change adds a couple of helper functions that now used in places where error were not checked, but should be.
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml3
1 files changed, 0 insertions, 3 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 9b8857d56..d0f0e9849 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -571,9 +571,6 @@ issues:
- linters:
- errcheck
text: "Error return value of `[^`]+.(Close|Serve)` is not checked"
- - linters:
- - errcheck
- text: "Error return value of `(out\\.Flush)` is not checked"
## errcheck: Specific issues in non-*_test.go files
- linters:
- errcheck