mirror of
https://github.com/kopia/kopia.git
synced 2026-05-18 19:54:37 -04:00
refactor(cli): diff test (#4422)
- Use a single struct and implementation for common functionality - set type in Mode() for directories - nit: fix typo
This commit is contained in:
@@ -47,7 +47,7 @@ func (c *commandDiff) run(ctx context.Context, rep repo.Repository) error {
|
||||
_, isDir2 := ent2.(fs.Directory)
|
||||
|
||||
if isDir1 != isDir2 {
|
||||
return errors.New("arguments do diff must both be directories or both non-directories")
|
||||
return errors.New("arguments to diff must both be directories or both non-directories")
|
||||
}
|
||||
|
||||
d, err := diff.NewComparer(c.out.stdout())
|
||||
|
||||
Reference in New Issue
Block a user