chore: upgrade golangci-lint to 1.51.1

This commit is contained in:
Oleg Lobanov
2023-02-16 09:11:12 +01:00
parent fa95299df4
commit 10d628aecc
11 changed files with 307 additions and 719 deletions

View File

@@ -198,8 +198,9 @@ func (i *FileInfo) RealPath() string {
return i.Path
}
// TODO: use constants
//
//nolint:goconst
//TODO: use constants
func (i *FileInfo) detectType(modify, saveContent, readHeader bool) error {
if IsNamedPipe(i.Mode) {
i.Type = "blob"