aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAbhinav Gupta <mail@abhinavg.net>2021-11-27 14:26:38 -0800
committerAbhinav Gupta <mail@abhinavg.net>2021-11-27 16:39:09 -0800
commit07a8bcc71afb5814c00c7a7b19c29b0c493a18fd (patch)
treee57ec50bc3e51cea46fc589c4a3cd0586869a2aa /config
parente4fcd078d42e945581616855ab78d8b7ed12df6c (diff)
downloadgo-git-07a8bcc71afb5814c00c7a7b19c29b0c493a18fd.tar.gz
Remove unused variables/types/functions
[staticcheck](https://staticcheck.io/) reported a number of unused fields, functions, types, and variables across the code. Where possible, use them (assert unchecked errors in tests, for example) and otherwise remove them.
Diffstat (limited to 'config')
-rw-r--r--config/config_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/config_test.go b/config/config_test.go
index 6f0242d..5a51bb3 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -361,6 +361,7 @@ func (s *ConfigSuite) TestRemoveUrlOptions(c *C) {
cfg.Remotes["alt"].URLs = []string{}
buf, err = cfg.Marshal()
+ c.Assert(err, IsNil)
if strings.Contains(string(buf), "url") {
c.Fatal("conifg should not contain any url sections")
}