mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-15 13:38:29 +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 fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import remove from 'lodash/remove';
|
|
||||||
import sortBy from 'lodash/sortBy';
|
import sortBy from 'lodash/sortBy';
|
||||||
import unionBy from 'lodash/unionBy';
|
import unionBy from 'lodash/unionBy';
|
||||||
import simpleGit from 'simple-git';
|
import simpleGit from 'simple-git';
|
||||||
|
@ -19,8 +18,8 @@ const excludes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
async function execute() {
|
async function execute() {
|
||||||
let { all } = await git.log();
|
const logResult = await git.log();
|
||||||
all = remove(all, ({ author_email: email }) => {
|
let all = logResult.all.filter(({ author_email: email }) => {
|
||||||
for (let i = 0; i < excludes.length; i++) {
|
for (let i = 0; i < excludes.length; i++) {
|
||||||
const item = excludes[i];
|
const item = excludes[i];
|
||||||
if (email.includes(item)) {
|
if (email.includes(item)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue