This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git

commit 40575dcd481d261b33b1b91fb24497b69b5d9259
Author: Christopher Collins <[email protected]>
AuthorDate: Mon Jan 27 10:47:23 2020 -0800

    repo: Remove logically dead code
    
    The code was comparing `err` a second time.
---
 newt/repo/repo.go | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/newt/repo/repo.go b/newt/repo/repo.go
index 17d9e60..14bfc89 100644
--- a/newt/repo/repo.go
+++ b/newt/repo/repo.go
@@ -134,9 +134,6 @@ func (repo *Repo) FilteredSearchList(
                }
 
                name := entry.Name()
-               if err != nil {
-                       continue
-               }
 
                if !entry.IsDir() {
                        continue

Reply via email to