Skip to content

Commit

Permalink
Fix unnecessary type convert
Browse files Browse the repository at this point in the history
  • Loading branch information
elct9620 committed Oct 3, 2024
1 parent 5fa279e commit c63fd9e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions godogs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,7 @@ func (feat *RubyFeature) thereShouldReturnAHash(doc *godog.DocString) error {
}

func (feat *RubyFeature) theExceptionMessageShouldBe(expected string) error {
exc, ok := feat.exc.(mruby.RException)

if !ok {
return fmt.Errorf("expected exception, got %T", feat.ret)
}

actual := exc.Error()
actual := feat.exc.Error()
if actual != expected {
return fmt.Errorf("expected %s, got %s", expected, actual)
}
Expand Down

0 comments on commit c63fd9e

Please sign in to comment.