infra: enable no-negated-condition eslint rule (#3283)

* infra: enable no-negated-condition eslint rule

* dev

* dev
This commit is contained in:
Alexandr Garbuzov authored and GitHub committed 2023-10-15 21:38:32 +03:00
1 parent 2567a6e580
commit 8278980d25
10 files changed
+59 -59

No files matched your search

+3 -3
View File
@@ -155,7 +155,9 @@ const run = async () => {
// Loop through all stale invalid theme pull requests and close them.
for (const prNumber of staleThemePRsNumbers) {
debug(`Closing #${prNumber} because it is stale...`);
if (!dryRun) {
if (dryRun) {
debug("Dry run enabled, skipping...");
} else {
await octokit.rest.issues.createComment({
owner,
repo,
@@ -168,8 +170,6 @@ const run = async () => {
pull_number: prNumber,
state: "closed",
});
} else {
debug("Dry run enabled, skipping...");
}
}
} catch (error) {