Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Fode committed Apr 10, 2017
1 parent 4a5e923 commit 98291f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ export class LaTexFormatter {
public formatDocument(document: vscode.TextDocument): Thenable<vscode.TextEdit[]> {
return new Promise((resolve, reject) => {
let formatter = 'latexindent';

let filename = document.fileName;
var edit = null;

cp.exec(formatter + filename, (err, stdout, stderr) => {
edit = [vscode.TextEdit.replace(fullRange(document), stdout)];
var edit = [vscode.TextEdit.replace(fullRange(document), stdout)];
return resolve(edit);
});

Expand Down

0 comments on commit 98291f7

Please sign in to comment.