tidy up eslint.js

This commit is contained in:
Olivier Gagnon
2022-07-19 12:19:32 -04:00
parent 2f029e94b4
commit c977a9def7
9 changed files with 12 additions and 33 deletions
+2 -2
View File
@@ -1424,8 +1424,8 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
if (ans == "[]") {
//Helper function to get neighbourhood of a vertex
function neighbourhood(vertex: number): number[] {
const adjLeft = data[1].filter(([a, _]) => a == vertex).map(([_, b]) => b);
const adjRight = data[1].filter(([_, b]) => b == vertex).map(([a, _]) => a);
const adjLeft = data[1].filter(([a]) => a == vertex).map(([, b]) => b);
const adjRight = data[1].filter(([, b]) => b == vertex).map(([a]) => a);
return adjLeft.concat(adjRight);
}