Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Aug 20, 2016
1 parent 8b16733 commit bb891c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion client/.eslintrc
Expand Up @@ -31,7 +31,6 @@
"jsx": true
},
"rules": {
"no-constant-condition": 2,
"no-debugger": 1,
"no-console": 0,
"consistent-return": [0],
Expand Down
12 changes: 6 additions & 6 deletions client/src/app/parts/auth/authModule.js
Expand Up @@ -148,10 +148,10 @@ function* runSagaActionAsync(actionAsync) {
error: take(actionAsync.error.getType())
})
}

/* eslint no-constant-condition: 0 */
function Sagas(actions) {
return {
login: function* saga(...args) {
login: function* saga() {
while (true) {
const {ok, error} = yield runSagaActionAsync(actions.login)
if(ok){
Expand All @@ -164,15 +164,15 @@ function Sagas(actions) {
}
}
},
logout: function* saga(...args) {
logout: function* saga() {
while (true) {
const {ok, error} = yield runSagaActionAsync(actions.logout)
yield runSagaActionAsync(actions.logout)
localStorage.removeItem("JWT");
}
},
verifyEmailCode: function* saga(...args) {
verifyEmailCode: function* saga() {
while (true) {
const {ok, error} = yield runSagaActionAsync(actions.verifyEmailCode)
const {ok} = yield runSagaActionAsync(actions.verifyEmailCode)
if(ok){
browserHistory.push(`/login`);
}
Expand Down

0 comments on commit bb891c3

Please sign in to comment.