Skip to content

Commit

Permalink
golangci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
refaktor committed Aug 10, 2024
1 parent 0ef5138 commit c83b286
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions evaldo/repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,10 @@ func DoRyeRepl(es *env.ProgramState, dialect string, showResults bool) { // here
if k == keyboard.KeyCtrlC {
// fmt.Println("Ctrl C 1")
cancel()
syscall.Kill(os.Getpid(), syscall.SIGINT)
err1 := syscall.Kill(os.Getpid(), syscall.SIGINT)

Check failure on line 359 in evaldo/repl.go

View workflow job for this annotation

GitHub Actions / build (windows-latest)

undefined: syscall.Kill
if err1 != nil {
fmt.Println(err.Error()) // TODO -- temprorary just printed
}
//ctx.Done()
// fmt.Println("")
// return
Expand All @@ -374,7 +377,6 @@ func DoRyeRepl(es *env.ProgramState, dialect string, showResults bool) { // here
fmt.Println(err)
}
// fmt.Println("END")

}

/* THIS WAS DISABLED TEMP FOR WASM MODE .. 20250116 func DoGeneralInput(es *env.ProgramState, prompt string) {
Expand Down
1 change: 0 additions & 1 deletion util/microliner.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,6 @@ startOfHere:

// mainLoop:
for {

select {
case <-ctx1.Done():
// fmt.Println("Exitin due to coancelation")
Expand Down

0 comments on commit c83b286

Please sign in to comment.