various linter fixes (#6106)

x/staking: Fix all linter warnings.

Fixed warnings across base packages.

New linters:
- unparam
- nolintlint

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
This commit is contained in:
Marko
2020-05-02 21:26:59 +02:00
committed by GitHub
co-authored by Alessio Treglia
parent 9251812f69
commit 218ec99508
103 changed files with 636 additions and 278 deletions
+2
View File
@@ -72,6 +72,7 @@ func GetString(prompt string, buf *bufio.Reader) (string, error) {
if err != nil {
return "", err
}
return strings.TrimSpace(out), nil
}
@@ -90,5 +91,6 @@ func readLineFromBuf(buf *bufio.Reader) (string, error) {
if err != nil {
return "", err
}
return strings.TrimSpace(pass), nil
}