summaryrefslogtreecommitdiff
path: root/internal/rtree/index.go
diff options
context:
space:
mode:
authorStefan Majewsky <stefan.majewsky@sap.com>2024-07-08 13:24:48 +0200
committerGitHub <noreply@github.com>2024-07-08 13:24:48 +0200
commit6f4c551a522b94e80ace5657d2b8cdfc267d8ae2 (patch)
treedff4e1340747fb48d9fd7e90fa5d106c7b28e622 /internal/rtree/index.go
parent36ff2756180fa586796088629b0e98ba4465753c (diff)
parentc94c05373f4bc79361ab2fcdd3516c244bc67312 (diff)
downloadgofu-6f4c551a522b94e80ace5657d2b8cdfc267d8ae2.tar.gz
Merge pull request #14 from SuperSandro2000/fixes
Fix lints reported by gopls
Diffstat (limited to 'internal/rtree/index.go')
-rw-r--r--internal/rtree/index.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/rtree/index.go b/internal/rtree/index.go
index ac78d90..201d4f9 100644
--- a/internal/rtree/index.go
+++ b/internal/rtree/index.go
@@ -273,8 +273,8 @@ func (i *Index) FindRepo(rawRemoteURL string, allowClone bool) (*Repo, error) {
return nil, err
}
i.Repos = append(i.Repos, &newRepo)
- i.Write()
- return &newRepo, nil
+ err = i.Write()
+ return &newRepo, err
}
//if we found fork candidates, ask the user to match the repo with a fork
@@ -302,8 +302,8 @@ func (i *Index) FindRepo(rawRemoteURL string, allowClone bool) (*Repo, error) {
return nil, err
}
i.Repos = append(i.Repos, &newRepo)
- i.Write()
- return &newRepo, nil
+ err = i.Write()
+ return &newRepo, err
}
//find the repo selected by the user
@@ -346,8 +346,8 @@ func (i *Index) FindRepo(rawRemoteURL string, allowClone bool) (*Repo, error) {
Name: remoteName,
URL: remoteURL,
})
- i.Write()
- return target, nil
+ err = i.Write()
+ return target, err
}
// ImportRepo moves the given repo into the rtree and adds it to the index.