1
0
Fork 0
mirror of https://github.com/vbatts/dedupe-linker.git synced 2024-12-28 01:26:33 +00:00

main: go vet

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-09-13 11:12:42 -04:00
parent 9a2f27d084
commit 6a4df87d10

View file

@ -77,7 +77,7 @@ func main() {
fmt.Printf("%s [%d] %s\n", fi.Hash, fi.Size, fi.Path)
} else {
if os.Getenv("DEBUG") != "" {
fmt.Printf("%q: %q\n", fi.Path, ourbase.HasBlob(fi.Hash))
fmt.Printf("%q: %t\n", fi.Path, ourbase.HasBlob(fi.Hash))
}
if ourbase.HasBlob(fi.Hash) && !ourbase.SameFile(fi.Hash, fi.Path) {
if err := ourbase.LinkTo(fi.Path, fi.Hash); err != nil {