Code smell

This commit is contained in:
Audrius Butkevicius
2014-11-04 23:22:15 +00:00
committed by Jakob Borg
parent edcfc32b1a
commit 938e287501
6 changed files with 30 additions and 32 deletions

View File

@@ -313,10 +313,10 @@ func (p *Puller) pullerIteration(ncopiers, npullers, nfinishers int, checksum bo
}
switch {
case protocol.IsDeleted(file.Flags):
case file.IsDeleted():
// A deleted file or directory
deletions = append(deletions, file)
case protocol.IsDirectory(file.Flags):
case file.IsDirectory():
// A new or changed directory
p.handleDir(file)
default: