Skip to content

Commit c17d4b2

Browse files
authored
fix: correct inverted error check (#88)
1 parent ebc418a commit c17d4b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adb/files.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func (a *ADB) FindFullCommand(path string) ([]FileInfo, error) {
1515
var results []FileInfo
1616
out, err := a.Shell("find", fmt.Sprintf("'%s'", path), "-type", "f", "-printf", "'%T@ %m %s %u %g %p\n'", "2>", "/dev/null")
1717

18-
if err == nil {
18+
if err != nil {
1919
return results, err
2020
}
2121

0 commit comments

Comments
 (0)