Skip to content

Commit

Permalink
cleaned up and remove unnecessary code from findCapitalizedPrimitiveT…
Browse files Browse the repository at this point in the history
…ypes
  • Loading branch information
willeand committed May 4, 2024
1 parent f25d572 commit 4793bb1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/findCapitalizedPrimitiveTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,6 @@ export function findCapitalizedPrimitiveTypes(myMap: Map<number, string[]>): Map
currentErrors.push(errorMessage);
myMap.set(lineNumber, currentErrors);
}

// Convert the map to a JSON string
const mapAsObject: { [key: number]: string[] } = {};
myMap.forEach((value, key) => { mapAsObject[key] = value; });
const jsonString = JSON.stringify(mapAsObject);

// Write the JSON string to a file
fs.writeFileSync('/Users/willscomputer/gradeFast-1.0/src/outputJson/data.json', jsonString);
console.log('JSON file created successfully.');
} else {
vscode.window.showErrorMessage('No active text editor.');
}
Expand Down

0 comments on commit 4793bb1

Please sign in to comment.