Fix lint errors (#1390)

* use increment and decrement operators.

* remove unnecessary else branches.

* fix package comment with leading space.

* fix receiver names.

* fix error strings.

* remove omittable code.

* remove redundant return statement.

* Revert changes (code is generated.)

* use cfg as receiver name for all config-related types.

* use lsi as the receiver name for the LastSignedInfo type.
This commit is contained in:
Thomas Corbière
2018-04-02 10:21:17 +02:00
committed by Anton Kaliaev
parent eaee98ee1f
commit 2644a529f0
40 changed files with 262 additions and 299 deletions

View File

@@ -37,9 +37,8 @@ type GenesisDoc struct {
func (genDoc *GenesisDoc) AppState() json.RawMessage {
if len(genDoc.AppOptions) > 0 {
return genDoc.AppOptions
} else {
return genDoc.AppStateJSON
}
return genDoc.AppStateJSON
}
// SaveAs is a utility method for saving GenensisDoc as a JSON file.