Skip to content

Commit

Permalink
The interface cast fails without the double *
Browse files Browse the repository at this point in the history
It seemed to have worked earlier without *s, but it doesn't.

My bad :(
  • Loading branch information
CarlosNihelton committed Sep 12, 2023
1 parent 3067c8b commit 3e5f1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mocks/contractserver/contracts/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func serverFactory(settings restserver.Settings) restserver.Server {
//nolint:forcetypeassert // Let the type coersion panic on failure.
return contractsmockserver.NewServer(settings.(contractsmockserver.Settings))
return contractsmockserver.NewServer(*settings.(*contractsmockserver.Settings))
}

func main() {
Expand Down

0 comments on commit 3e5f1fd

Please sign in to comment.