Enable vetshadow linter

This commit is contained in:
Andrey Smirnov committed 2017-05-04 23:00:13 +03:00
1 parent a9a5a73dfd
commit 5ce6bf8718
18 files changed
+82 -65

No files matched your search

+2 -1
View File
@@ -146,7 +146,8 @@ func (storage *PublishedStorage) LinkFromPool(publishedDirectory, baseName strin
}
} else {
// if source and destination have the same checksums, no need to copy
dstMD5, err := utils.MD5ChecksumForFile(filepath.Join(poolPath, baseName))
var dstMD5 string
dstMD5, err = utils.MD5ChecksumForFile(filepath.Join(poolPath, baseName))
if err != nil {
return err