summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-04-08 20:24:29 +0200
committerJakob Unterwurzacher2018-04-08 20:26:25 +0200
commitbcc8378a2c07476a43c1fe316b79590177ded3d3 (patch)
tree62ec5920109b92e3421884b9f3677ea95a83b56b /tests
parentcab0cda449c831d1d5bb9b75452428c186079799 (diff)
Fix the easy golint warnings
Reported by https://goreportcard.com/report/github.com/rfjakob/gocryptfs
Diffstat (limited to 'tests')
-rw-r--r--tests/test_helpers/helpers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index a859129..4c704d4 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -422,8 +422,8 @@ func QueryCtlSock(t *testing.T, socketPath string, req ctlsock.RequestStruct) (r
return response
}
-// Extract the exit code from an error value that was returned from
-// exec / cmd.Run()
+// ExtractCmdExitCode extracts the exit code from an error value that was
+// returned from exec / cmd.Run()
func ExtractCmdExitCode(err error) int {
if err == nil {
return 0