diff --git a/util/btcctl/config.go b/util/btcctl/config.go index 553fde441a..27e670fc45 100644 --- a/util/btcctl/config.go +++ b/util/btcctl/config.go @@ -116,7 +116,7 @@ func loadConfig() (*flags.Parser, *config, []string, error) { // here since they will be caught be the final parse below. preCfg := cfg preParser := flags.NewParser(&preCfg, flags.None) - preParser.Parse() + _, _ = preParser.Parse() // Show the version and exit if the version flag was specified. if preCfg.ShowVersion { diff --git a/util/btcctl/version.go b/util/btcctl/version.go index c947516b13..2c9bc63925 100644 --- a/util/btcctl/version.go +++ b/util/btcctl/version.go @@ -65,7 +65,10 @@ func normalizeVerString(str string) string { var result bytes.Buffer for _, r := range str { if strings.ContainsRune(semanticAlphabet, r) { - result.WriteRune(r) + // Ignoring the error here since it can only fail if + // the the system is out of memory and there are much + // bigger issues at that point. + _, _ = result.WriteRune(r) } } return result.String()