This commit is contained in:
2
index.js
2
index.js
@@ -96,14 +96,12 @@ async function postCode() {
|
||||
"path": path,
|
||||
};
|
||||
|
||||
// TODO: Refactor error handling for cleaner code
|
||||
const errorMessage = validateAuthentication(token, username, password);
|
||||
if (errorMessage) {
|
||||
core.error(errorMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Consider moving log statement after error checks
|
||||
core.log(JSON.stringify(login_arguments, null, 2));
|
||||
|
||||
const api = new ScreepsAPI(login_arguments);
|
||||
|
||||
Reference in New Issue
Block a user