Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Cunha committed Oct 13, 2017
1 parent 422e487 commit 16ac408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/data/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func validatePath(path string) {
if err != nil {
exitErrorf("Source path %v not found", path)
}
if !fd.Mode().IsDir() {
if !fd.IsDir() {
exitErrorf("Source path %v must be a directory", path)
}
}
Expand Down
2 changes: 1 addition & 1 deletion cli/data/commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

func TestFilesToKeys(t *testing.T) {
AppFs = afero.NewMemMapFs()
AppFs.MkdirAll("src/", 0755)
AppFs.MkdirAll("src/a", 0755)
afero.WriteFile(AppFs, "src/a/b", []byte("file c"), 0644)
afero.WriteFile(AppFs, "src/c", []byte("file c"), 0644)

Expand Down

0 comments on commit 16ac408

Please sign in to comment.