From 8d3b9971e74639e220ca55fc8451663ab0c4df8d Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Mon, 19 Sep 2016 13:09:11 -0700 Subject: [PATCH] Increase the deadline to 30 seconds in lint and fix lint errors Signed-off-by: Mrunal Patel --- .tool/lint | 2 +- server/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.tool/lint b/.tool/lint index 121a8fdf..2f0144ad 100755 --- a/.tool/lint +++ b/.tool/lint @@ -20,5 +20,5 @@ for d in $(find . -type d -not -iwholename '*.git*' -a -not -iname '.tool' -a -n --disable=gas \ --cyclo-over=50 \ --tests \ - --deadline=10s "${d}" + --deadline=30s "${d}" done diff --git a/server/utils.go b/server/utils.go index 12bdc020..e7413fcf 100644 --- a/server/utils.go +++ b/server/utils.go @@ -33,7 +33,7 @@ func sPtr(s string) *string { func getGPRCVersion() (string, error) { _, file, _, ok := runtime.Caller(0) if !ok { - return "", errors.New("failed to recover the caller information.") + return "", errors.New("failed to recover the caller information") } ocidRoot := filepath.Dir(filepath.Dir(file))