mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-15 05:28:27 +02:00
fix: fix lint error (#54122)
This commit is contained in:
parent
626ae95055
commit
0de8a30b43
1 changed files with 2 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue