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

Commit

Permalink
fix: Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdor committed Oct 16, 2018
1 parent 11c8f07 commit 8105d18
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ interface LoadConfig {
maxArrayValues: number;
// MaxStructFields is the maximum number of fields read from a struct, -1 will read all fields.
maxStructFields: number;
};
}

interface DebugThread {
file: string;
id: number;
line: number;
pc: number;
function?: DebugFunction;
};
}

interface StacktraceOut {
Locations: DebugLocation[];
Expand Down
2 changes: 1 addition & 1 deletion src/diffUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function isDiffToolAvailable(): boolean {
return diffToolAvailable;
}

export enum EditTypes { EDIT_DELETE, EDIT_INSERT, EDIT_REPLACE };
export enum EditTypes { EDIT_DELETE, EDIT_INSERT, EDIT_REPLACE }

export class Edit {
action: number;
Expand Down
6 changes: 3 additions & 3 deletions src/goDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function definitionLocation_godef(document: vscode.TextDocument, isMod: boolean,
}
if (err) {
return reject(err.message || stderr);
};
}
let result = stdout.toString();
let lines = result.split('\n');
let match = /(.*):(\d+):(\d+)/.exec(lines[0]);
Expand Down Expand Up @@ -164,7 +164,7 @@ function definitionLocation_gogetdoc(document: vscode.TextDocument, isMod: boole
return resolve(null);
}
return reject(err.message || stderr);
};
}
let goGetDocOutput = <GoGetDocOuput>JSON.parse(stdout.toString());
let match = /(.*):(\d+):(\d+)/.exec(goGetDocOutput.pos);
let definitionInfo = {
Expand Down Expand Up @@ -212,7 +212,7 @@ function definitionLocation_guru(document: vscode.TextDocument, position: vscode
}
if (err) {
return reject(err.message || stderr);
};
}
let guruOutput = <GuruDefinitionOuput>JSON.parse(stdout.toString());
let match = /(.*):(\d+):(\d+)/.exec(guruOutput.objpos);
let definitionInfo = {
Expand Down
2 changes: 1 addition & 1 deletion src/goGenerateTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function generateTestCurrentFunction(): Thenable<boolean> {
currentFunction = func;
break;
}
};
}
if (!currentFunction) {
vscode.window.showInformationMessage('No function found at cursor.');
return Promise.resolve(false);
Expand Down
2 changes: 1 addition & 1 deletion src/goGetPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ export function goGetPackage() {
// go get -v doesn't write anything when the package already exists
vscode.window.showInformationMessage(`Package already exists: ${importPath}`);
});
};
}
2 changes: 1 addition & 1 deletion src/goSuggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class GoCompletionItemProvider implements vscode.CompletionItemProvider {
item.sortText = 'a';
suggestions.push(item);
suggestionSet.add(item.label);
};
}
}

// Add importable packages matching currentword to suggestions
Expand Down
2 changes: 1 addition & 1 deletion src/goTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function testAtCursor(goConfig: vscode.WorkspaceConfiguration, isBenchmar
testFunctionName = func.name;
break;
}
};
}
}

if (!testFunctionName) {
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ export function handleDiagnosticErrors(document: vscode.TextDocument, errors: IC
warningDiagnosticCollection.set(fileUri, newWarnings);
}
});
};
}


function mapSeverityToVSCodeSeverity(sev: string): vscode.DiagnosticSeverity {
Expand Down

0 comments on commit 8105d18

Please sign in to comment.