Skip to content

Commit

Permalink
Remove erroneous call to RemoveAllReposPath
Browse files Browse the repository at this point in the history
- Fixes #280
  • Loading branch information
hupfdule committed May 3, 2019
1 parent 14d577a commit 365a7c0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions subcmd/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,6 @@ func (cmd *editCmd) doEdit(reposPathList []pathutil.ReposPath) (bool, error) {

// A change was made if the modification time was updated
changeWasMade = changeWasMade || mTimeAfter.After(mTimeBefore)

// Remove repository from lock.json
err = lockJSON.Repos.RemoveAllReposPath(reposPath)
err2 := lockJSON.Profiles.RemoveAllReposPath(reposPath)
if err == nil || err2 == nil {
// ignore?
}
}

// Write to lock.json
Expand Down

0 comments on commit 365a7c0

Please sign in to comment.