mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
patch eslint rules
This commit is contained in:
15 files changed
+24
-19
No files matched your search
@@ -58,7 +58,7 @@ class AccountService {
|
||||
if (langConfig.validAs?.[this.account.type]) task.lang = langConfig.validAs[this.account.type];
|
||||
const comment = langConfig.comment;
|
||||
if (comment && !this.Provider.noComment) {
|
||||
const msg = `Hydro submission #${task.rid}@${new Date().getTime()}`;
|
||||
const msg = `Hydro submission #${task.rid}@${Date.now()}`;
|
||||
if (typeof comment === 'string') task.code = `${comment} ${msg}\n${task.code}`;
|
||||
else if (comment instanceof Array) task.code = `${comment[0]} ${msg} ${comment[1]}\n${task.code}`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user