diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-04-15 09:39:39 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-04-15 09:39:46 +0200 |
commit | d464f2d6abcecd7cd2f5ca6f96d7b61b5b88444b (patch) | |
tree | ffe2ae875f3adf9cdef6df315ff4dc898ed8710a /server/sonar-web/src/main/js/apps/code | |
parent | 8a49482fc8b942ea75ddab4fee58d75a5c6eee9a (diff) | |
download | sonarqube-d464f2d6abcecd7cd2f5ca6f96d7b61b5b88444b.tar.gz sonarqube-d464f2d6abcecd7cd2f5ca6f96d7b61b5b88444b.zip |
fix quality flaws
Diffstat (limited to 'server/sonar-web/src/main/js/apps/code')
-rw-r--r-- | server/sonar-web/src/main/js/apps/code/reducers/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/reducers/index.js b/server/sonar-web/src/main/js/apps/code/reducers/index.js index f061926e0e4..a554d94d26d 100644 --- a/server/sonar-web/src/main/js/apps/code/reducers/index.js +++ b/server/sonar-web/src/main/js/apps/code/reducers/index.js @@ -112,7 +112,7 @@ export const initialState = { errorMessage: null }; -export function current (state = initialState, action) { +export function current (state = initialState, action = {}) { /* eslint no-case-declarations: 0 */ /* FIXME fix it ^^^ */ switch (action.type) { @@ -183,7 +183,7 @@ export function current (state = initialState, action) { } } -export function bucket (state = [], action) { +export function bucket (state = [], action = {}) { switch (action.type) { case INIT: return merge(state, action.component); |