Skip to content

Commit

Permalink
fix: use new method for instantiate interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jul 22, 2024
1 parent 90d4ba8 commit d609309
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/logic/interpreter/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ func WithFS(fs fs.FS) Option {
func New(
opts ...Option,
) (*prolog.Interpreter, error) {
var i prolog.Interpreter
i := prolog.NewEmpty()

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / build-go

undefined: prolog.NewEmpty

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / lint-go

undefined: prolog.NewEmpty (typecheck)

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / lint-go

undefined: prolog.NewEmpty) (typecheck)

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / lint-go

undefined: prolog.NewEmpty (typecheck)

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / lint-go

undefined: prolog.NewEmpty) (typecheck)

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / lint-go

undefined: prolog.NewEmpty (typecheck)

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / lint-go

undefined: prolog.NewEmpty (typecheck)

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / lint-go

undefined: prolog.NewEmpty) (typecheck)

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / lint-generated

undefined: prolog.NewEmpty

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / lint-generated

undefined: prolog.NewEmpty

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / test-go

undefined: prolog.NewEmpty

Check failure on line 75 in x/logic/interpreter/interpreter.go

View workflow job for this annotation

GitHub Actions / test-blockchain

undefined: prolog.NewEmpty

for _, opt := range opts {
if err := opt(&i); err != nil {
if err := opt(i); err != nil {
return nil, err
}
}

return &i, nil
return i, nil
}

0 comments on commit d609309

Please sign in to comment.