Skip to content

Commit

Permalink
Remove extra calls to setRepocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Mar 17, 2024
1 parent 7bcc239 commit 8a35c73
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 77 deletions.
1 change: 0 additions & 1 deletion internal/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,6 @@ func (s *Server) reprocessHistory(req *ReprocessRequest) (*ReprocessResponse, er
return
}
script := fmt.Sprintf("JSON.stringify(game.reprocessHistory(%s, %s))", string(setup), string(moves))
fmt.Printf("running script %s\n", script)
val, err := ctx.RunScript(script, "reprocessHistory.js")
if err != nil {
errs <- fmt.Errorf("error running reprocess: %w", err)
Expand Down
Loading

0 comments on commit 8a35c73

Please sign in to comment.