Skip to content

Commit 8b7d5bd

Browse files
committed
Refactor lodash import
1 parent 9758d04 commit 8b7d5bd

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/app/store/Run.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import StoreBase from './StoreBase';
1717
import { is, quote } from '../../common/utils';
1818
import * as raxmlSettings from '../../settings/raxml';
1919
import * as ipc from '../../constants/ipc';
20-
import _ from 'lodash';
20+
import remove from 'lodash/remove';
2121
import UserFixError from '../../common/errors';
2222

2323
const readFile = util.promisify(fs.readFile);
@@ -1405,7 +1405,7 @@ class Run extends StoreBase {
14051405
default:
14061406
}
14071407
// Remove items that are only empty strings
1408-
cmdArgs.forEach((args) => _.remove(args, (n) => n === ''));
1408+
cmdArgs.forEach((args) => remove(args, (n) => n === ''));
14091409
return cmdArgs.filter((args) => args.length > 0);
14101410
};
14111411

@@ -1898,7 +1898,7 @@ class Run extends StoreBase {
18981898
default:
18991899
}
19001900
// Remove items that are only empty strings
1901-
cmdArgs.forEach((args) => _.remove(args, (n) => n === ''));
1901+
cmdArgs.forEach((args) => remove(args, (n) => n === ''));
19021902
return cmdArgs.filter((args) => args.length > 0);
19031903
};
19041904

src/main/api.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
Notification,
77
BrowserWindow,
88
} from 'electron';
9-
import _ from 'lodash';
109
import path from 'path';
1110
import util from 'util';
1211
import _fs from 'fs';

0 commit comments

Comments
 (0)