From 293582720818dfd5c9c680b8edf57418627a7de1 Mon Sep 17 00:00:00 2001 From: Zachary Romero Date: Mon, 19 Mar 2018 15:28:42 +0300 Subject: [PATCH] Chage the for loop style --- cmd/dep/status.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/dep/status.go b/cmd/dep/status.go index 2de051719b..42b6dd32ea 100644 --- a/cmd/dep/status.go +++ b/cmd/dep/status.go @@ -529,14 +529,14 @@ func (cmd *statusCommand) runOld(ctx *dep.Ctx, out oldOutputter, p *dep.Project, solutionProjects := solution.Projects() for _, proj := range p.Lock.Projects() { - for i := range solutionProjects { + for _, sProj := range solutionProjects { // Look for the same project in solution and lock. - if solutionProjects[i].Ident().ProjectRoot != proj.Ident().ProjectRoot { + if sProj.Ident().ProjectRoot != proj.Ident().ProjectRoot { continue } // If revisions are not the same then it is old and we should display it. - latestRev, _, _ := gps.VersionComponentStrings(solutionProjects[i].Version()) + latestRev, _, _ := gps.VersionComponentStrings(sProj.Version()) atRev, _, _ := gps.VersionComponentStrings(proj.Version()) if atRev == latestRev { continue