diff options
Diffstat (limited to 'repo.new.go')
| -rw-r--r-- | repo.new.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repo.new.go b/repo.new.go index fa39dfa..c073fad 100644 --- a/repo.new.go +++ b/repo.new.go @@ -50,8 +50,8 @@ func (all *Repos) NewGoRepo(fullpath string, gopath string) (*Repo, error) { // enforces GoPath is unique func (all *Repos) AppendByGoPath(newr *Repo) bool { - all.Lock.RLock() - defer all.Lock.RUnlock() + all.RLock() + defer all.RUnlock() for _, r := range all.Repos { if r.GoInfo.GoPath == newr.GoInfo.GoPath { |
