Use only single-method imports from lodash

This commit is contained in:
Ken-Håvard Lieng 2016-01-27 21:41:24 +01:00
parent b50a4a1068
commit e2fbac7f38
2 changed files with 10 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _escape from 'lodash/escape';
import createCommandMiddleware from './middleware/command';
import { COMMAND } from './actions';
import { setNick, disconnect, whois, away } from './actions/server';
@ -20,7 +20,7 @@ const help = [
'/whois <user> - Get information about user',
'/away [message] - Set or clear away message',
'/raw [message] - Send raw IRC message to the current server'
].map(_.escape);
].map(_escape);
export default createCommandMiddleware(COMMAND, {
join({ dispatch, server }, channel) {