From 9b8617d17325115a69637240935653105bc68126 Mon Sep 17 00:00:00 2001 From: Sunny Date: Thu, 27 Jul 2017 00:13:17 +0530 Subject: [PATCH] ref(project): group variable declarations Group variable declarations and correct error message (no capitalization and end with punctuation). --- project.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/project.go b/project.go index 50e0205e..6e5ffaae 100644 --- a/project.go +++ b/project.go @@ -13,8 +13,10 @@ import ( "github.com/golang/dep/internal/gps" ) -var errProjectNotFound = fmt.Errorf("could not find project %s, use dep init to initiate a manifest", ManifestName) -var errVendorBackupFailed = fmt.Errorf("Failed to create vendor backup. File with same name exists.") +var ( + errProjectNotFound = fmt.Errorf("could not find project %s, use dep init to initiate a manifest", ManifestName) + errVendorBackupFailed = fmt.Errorf("failed to create vendor backup. File with same name exists") +) // findProjectRoot searches from the starting directory upwards looking for a // manifest file until we get to the root of the filesystem.