Reworked index.
Lint / pre-commit Linting (push) Successful in 24s Details

This commit is contained in:
Philipp Horstenkamp 2023-11-26 20:59:44 +01:00
parent c69726c600
commit dbd765cbdf
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4
1 changed files with 1 additions and 2 deletions

View File

@ -113,9 +113,8 @@ async function postCode() {
core.error(errorMessage);
return;
}
let api;
let api = new ScreepsAPI(login_arguments);
if (token) {
api = new ScreepsAPI(login_arguments);
const response = await api.code.set(branch, files_to_push);
core.info(JSON.stringify(response, null, 2));
} else {