From a782d42ad6bfbfabe208110f8e09585912cf3eae Mon Sep 17 00:00:00 2001 From: Michael Cook Date: Wed, 7 Nov 2018 13:19:46 +0100 Subject: [PATCH] go vet: result of fmt.Errorf call not used --- src/duplicacy_filestorage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_filestorage.go b/src/duplicacy_filestorage.go index 1fbd090..937b624 100644 --- a/src/duplicacy_filestorage.go +++ b/src/duplicacy_filestorage.go @@ -165,7 +165,7 @@ func (storage *FileStorage) UploadFile(threadIndex int, filePath string, content } } else { if !stat.IsDir() { - fmt.Errorf("The path %s is not a directory", dir) + return fmt.Errorf("The path %s is not a directory", dir) } } }