Fix linting errors

This commit is contained in:
Oliver Sauder
2017-11-02 12:57:52 +01:00
parent 2bd0b786ea
commit d6b4b795a5
3 changed files with 5 additions and 10 deletions
+2 -1
View File
@@ -203,7 +203,8 @@ func packageIndexByHash(file *indexFile, ext string, hash string, sum string) er
if file.parent.publishedStorage.FileExists(filepath.Join(dst, indexfile)) {
// if exists, remove old symlink
if file.parent.publishedStorage.FileExists(filepath.Join(dst, indexfile+".old")) {
link, err := file.parent.publishedStorage.ReadLink(filepath.Join(dst, indexfile+".old"))
var link string
link, err = file.parent.publishedStorage.ReadLink(filepath.Join(dst, indexfile+".old"))
if err != nil {
file.parent.publishedStorage.Remove(link)
}