Removing unused consts and cleaning up per golint.
diff --git a/cmd/get_imports.go b/cmd/get_imports.go
index 9cadddd..27b1eec 100644
--- a/cmd/get_imports.go
+++ b/cmd/get_imports.go
@@ -28,14 +28,6 @@
//v.Logger = log.New(os.Stdout, "go-vcs", log.LstdFlags)
}
-const (
- NoVCS = ""
- Git = "git"
- Bzr = "bzr"
- Hg = "hg"
- Svn = "svn"
-)
-
// Get fetches a single package and puts it in vendor/.
//
// Params:
diff --git a/cmd/util.go b/cmd/util.go
index 20960fc..1ef986a 100644
--- a/cmd/util.go
+++ b/cmd/util.go
@@ -124,7 +124,8 @@
return ps
}
-// Convenience wrapper for not having to import go/build anywhere else
+// BuildCtxt is a convenience wrapper for not having to import go/build
+// anywhere else
type BuildCtxt struct {
build.Context
}
diff --git a/cmd/yaml.go b/cmd/yaml.go
index c2dd613..92995ba 100644
--- a/cmd/yaml.go
+++ b/cmd/yaml.go
@@ -237,7 +237,7 @@
func getVcsType(store map[string]yaml.Node) string {
val, ok := store["vcs"]
if !ok {
- return NoVCS
+ return string(v.NoVCS)
}
name := val.(yaml.Scalar).String()