Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Avoid returning rejected promise twice #1447
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jan 9, 2018
1 parent d0c5309 commit f898b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class GoDocumentFormattingEditProvider implements vscode.DocumentFormatti
});
p.on('close', code => {
if (code !== 0) {
return reject(stderr);
return;
}

// Return the complete file content in the edit.
Expand Down

0 comments on commit f898b2c

Please sign in to comment.