Remove unused variables (#3906)
This commit is contained in:
parent
6fbb3841a6
commit
eff9416469
63 changed files with 60 additions and 182 deletions
|
@ -1,13 +1,11 @@
|
|||
import { showAlert } from '../actions/alerts';
|
||||
|
||||
const defaultSuccessSuffix = 'SUCCESS';
|
||||
const defaultFailSuffix = 'FAIL';
|
||||
|
||||
export default function errorsMiddleware() {
|
||||
return ({ dispatch }) => next => action => {
|
||||
if (action.type && !action.skipAlert) {
|
||||
const isFail = new RegExp(`${defaultFailSuffix}$`, 'g');
|
||||
const isSuccess = new RegExp(`${defaultSuccessSuffix}$`, 'g');
|
||||
|
||||
if (action.type.match(isFail)) {
|
||||
if (action.error.response) {
|
||||
|
|
|
@ -32,7 +32,7 @@ export default function soundsMiddleware() {
|
|||
]),
|
||||
};
|
||||
|
||||
return ({ dispatch }) => next => (action) => {
|
||||
return () => next => action => {
|
||||
if (action.meta && action.meta.sound && soundCache[action.meta.sound]) {
|
||||
play(soundCache[action.meta.sound]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue