format, lint, remove unused "running" property on ws

This commit is contained in:
Snarling
2022-08-27 22:32:48 -04:00
parent 6f36e9cdc5
commit ef1f376c09
6 changed files with 8 additions and 35 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export function NetscriptCodingContract(): InternalAPI<ICodingContract> {
throw new Error("The answer provided was not a number, string, or array");
// Convert answer to string.
const answerStr = typeof answer === 'string' ? answer : JSON.stringify(answer);
const answerStr = typeof answer === "string" ? answer : JSON.stringify(answer);
const creward = contract.reward;
if (creward === null) throw new Error("Somehow solved a contract that didn't have a reward");