diff --git a/subcmd/edit.go b/subcmd/edit.go index 85740065..4f319938 100644 --- a/subcmd/edit.go +++ b/subcmd/edit.go @@ -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