Skip to content

Commit

Permalink
[mod] return os.Remove error and os.Exit
Browse files Browse the repository at this point in the history
  • Loading branch information
dohq committed Dec 24, 2019
1 parent d8f904a commit ce3e39a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions langserver/exit.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ package langserver

import (
"context"
lsp "github.com/sourcegraph/go-lsp"
"os"

lsp "github.com/sourcegraph/go-lsp"
)

func Exit(ctx context.Context, vs lsp.None) error {
os.Remove(tempFile.Name())
err := os.Remove(tempFile.Name())
if err != nil {
return err
}

os.Exit(0)
return nil
}

0 comments on commit ce3e39a

Please # to comment.