Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 85d23fa

Browse files
committedMar 28, 2018
status: Handle code climate suggestion re: errs
This patch updates two lines to return errors directly as recommended by the CI tool, code climate.
1 parent adf851e commit 85d23fa

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed
 

‎cmd/dep/status.go

+2-10
Original file line numberDiff line numberDiff line change
@@ -1209,11 +1209,7 @@ func basicOutputAll(out outputter, slp []gps.LockedProject, bsMap map[string]*Ba
12091209
}
12101210
}
12111211

1212-
if footerErr := out.BasicFooter(); footerErr != nil {
1213-
return footerErr
1214-
}
1215-
1216-
return nil
1212+
return out.BasicFooter()
12171213
}
12181214

12191215
// detailOutputAll takes an outputter, a project list, and a map of ProjectRoot to *DetailStatus and
@@ -1231,11 +1227,7 @@ func detailOutputAll(out outputter, slp []gps.LockedProject, dsMap map[string]*D
12311227
}
12321228
}
12331229

1234-
if footerErr := out.DetailFooter(metadata); footerErr != nil {
1235-
return footerErr
1236-
}
1237-
1238-
return nil
1230+
return out.DetailFooter(metadata)
12391231
}
12401232

12411233
func formatVersion(v gps.Version) string {

0 commit comments

Comments
 (0)
This repository has been archived.