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 b49bb52015a1f753d47e97fb64ba34558225c7d9 Author: Christopher Collins <[email protected]> AuthorDate: Mon Jan 27 11:31:18 2020 -0800 manifest: Remove duplicate if / else branch --- newt/manifest/manifest.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/newt/manifest/manifest.go b/newt/manifest/manifest.go index adb1299..cb1c285 100644 --- a/newt/manifest/manifest.go +++ b/newt/manifest/manifest.go @@ -133,14 +133,8 @@ func (r *RepoManager) GetManifestPkg( Name: lpkg.FullName(), } - var path string - if lpkg.Repo().IsLocal() { - ip.Repo = lpkg.Repo().Name() - path = lpkg.BasePath() - } else { - ip.Repo = lpkg.Repo().Name() - path = lpkg.BasePath() - } + ip.Repo = lpkg.Repo().Name() + path := lpkg.BasePath() if _, present := r.repos[ip.Repo]; present { return ip
