all: Bunch of more linter fixes (#5500)
This commit is contained in:
@@ -51,7 +51,7 @@ func TempNameWithPrefix(name, prefix string) string {
|
||||
tbase := filepath.Base(name)
|
||||
if len(tbase) > maxFilenameLength {
|
||||
hash := md5.New()
|
||||
hash.Write([]byte(name))
|
||||
_, _ = hash.Write([]byte(name))
|
||||
tbase = fmt.Sprintf("%x", hash.Sum(nil))
|
||||
}
|
||||
tname := fmt.Sprintf("%s%s.tmp", prefix, tbase)
|
||||
|
||||
Reference in New Issue
Block a user