Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Dec 8, 2023
1 parent 1172215 commit baebef5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ignite/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func Long(ctx context.Context) string {
// AssertSupportedCosmosSDKVersion asserts that a Cosmos SDK version is supported by Ignite CLI.
func AssertSupportedCosmosSDKVersion(v cosmosver.Version) error {
if v.LT(cosmosver.StargateFortySevenTwoVersion) {
return fmt.Errorf(errOldCosmosSDKVersionStr, v) //nolint:staticcheck // this gives a prettier error message
return fmt.Errorf(errOldCosmosSDKVersionStr, v) //nolint:stylecheck // gives a prettier error message
}
return nil
}
7 changes: 6 additions & 1 deletion ignite/version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ func TestAssertSupportedCosmosSDKVersion(t *testing.T) {
{
"invalid",
cosmosver.Version{Version: "invalid"},
"your chain has been scaffolded with an older version of Cosmos SDK: invalid",
"Your chain has been scaffolded with an older version of Cosmos SDK: invalid",
},
{
"too old",
cosmosver.Version{Version: "v0.45.0", Semantic: semver.MustParse("0.45.0")},
"Your chain has been scaffolded with an older version of Cosmos SDK: v0.45.0",
},
{
"v0.47.3",
Expand Down

0 comments on commit baebef5

Please sign in to comment.