fix: fix lint error (#54122)

This commit is contained in:
Wanpan 2025-06-18 17:00:20 +08:00 committed by GitHub
parent 626ae95055
commit 0de8a30b43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,5 @@
import fs from 'fs';
import path from 'path';
import remove from 'lodash/remove';
import sortBy from 'lodash/sortBy';
import unionBy from 'lodash/unionBy';
import simpleGit from 'simple-git';
@ -19,8 +18,8 @@ const excludes = [
];
async function execute() {
let { all } = await git.log();
all = remove(all, ({ author_email: email }) => {
const logResult = await git.log();
let all = logResult.all.filter(({ author_email: email }) => {
for (let i = 0; i < excludes.length; i++) {
const item = excludes[i];
if (email.includes(item)) {