Fixes after running errcheck

This commit is contained in:
Nick Craig-Wood
2014-07-25 18:19:49 +01:00
parent 125fc8f1f0
commit 17ffb0855f
6 changed files with 22 additions and 14 deletions
+2 -3
View File
@@ -574,7 +574,7 @@ func metadataKey(path string) string {
// NB File system is case insensitive
path = strings.ToLower(path)
hash := md5.New()
hash.Write([]byte(path))
_, _ = hash.Write([]byte(path))
return fmt.Sprintf("%x", hash.Sum(nil))
}
@@ -635,8 +635,7 @@ func (o *FsObjectDropbox) readMetaData() (err error) {
}
// Last resort
o.readEntryAndSetMetadata()
return nil
return o.readEntryAndSetMetadata()
}
// ModTime returns the modification time of the object