1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 02:10:24 +00:00

optimize lint

This commit is contained in:
孙永强
2025-03-24 17:03:44 +08:00
parent 6ec51afa43
commit d1b4bd1903
6 changed files with 17 additions and 24 deletions

View File

@@ -729,10 +729,10 @@ class SystemAdminAPI {
per_page: perPage
};
if (emails.from_emails && emails.from_emails.length) {
params.from_emails = emails.from_emails.join(',')
params.from_emails = emails.from_emails.join(',');
}
if (emails.to_emails && emails.to_emails.length) {
params.to_emails = emails.to_emails.join(',')
params.to_emails = emails.to_emails.join(',');
}
if (repos && repos.length) {
params.repos = repos.map(repo => repo.id).join(',');