Fix after updating golangci-lint

v1.43
This commit is contained in:
Maximilian Paß
2021-11-10 10:36:11 +01:00
parent fff67246d6
commit dcc869cd94
8 changed files with 29 additions and 29 deletions

View File

@@ -288,13 +288,13 @@ func tarHeader(file dto.File) *tar.Header {
return &tar.Header{
Typeflag: tar.TypeDir,
Name: file.CleanedPath(),
Mode: 0755,
Mode: 0o755,
}
} else {
return &tar.Header{
Typeflag: tar.TypeReg,
Name: file.CleanedPath(),
Mode: 0744,
Mode: 0o744,
Size: int64(len(file.Content)),
}
}