mirror of
https://github.com/restic/restic.git
synced 2025-03-16 00:00:05 +01:00
gofmt
This commit is contained in:
parent
5b2980df4e
commit
ebc37708d8
4 changed files with 5 additions and 6 deletions
|
@ -33,7 +33,7 @@ func walkDir(dir string) <-chan *dirEntry {
|
|||
fmt.Fprintf(os.Stderr, "error: %v\n", err)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
ch <- &dirEntry{
|
||||
path: name,
|
||||
fi: info,
|
||||
|
|
|
@ -36,7 +36,7 @@ func (e *dirEntry) equals(other *dirEntry) bool {
|
|||
fmt.Fprintf(os.Stderr, "%v: GID does not match (%v != %v)\n", e.path, stat.Gid, stat2.Gid)
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
if stat.Nlink != stat2.Nlink {
|
||||
fmt.Fprintf(os.Stderr, "%v: Number of links doe not match (%v != %v)\n", e.path, stat.Nlink, stat2.Nlink)
|
||||
return false
|
||||
|
@ -45,7 +45,7 @@ func (e *dirEntry) equals(other *dirEntry) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
func nlink(info os.FileInfo) (uint64) {
|
||||
func nlink(info os.FileInfo) uint64 {
|
||||
stat, _ := info.Sys().(*syscall.Stat_t)
|
||||
return stat.Nlink
|
||||
}
|
||||
|
|
|
@ -26,6 +26,6 @@ func (e *dirEntry) equals(other *dirEntry) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
func nlink(info os.FileInfo) (uint64) {
|
||||
func nlink(info os.FileInfo) uint64 {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1048,4 +1048,3 @@ func TestHardLink(t *testing.T) {
|
|||
testRunCheck(t, gopts)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue