Standardizing bracket syntax

This commit is contained in:
James Barnsley
2017-10-10 13:05:28 +13:00
parent 0ca37b0f62
commit 2ffa337ffa
116 changed files with 7451 additions and 3246 deletions

View File

@ -11,7 +11,7 @@ var helpers = require('../../helpers')
* @param endpoint params = the url params to send
**/
const sendRequest = (dispatch, getState, endpoint) => {
return new Promise( (resolve, reject) => {
return new Promise((resolve, reject) => {
var loader_key = helpers.generateGuid();
dispatch(uiActions.startLoading(loader_key, 'genius_'+endpoint));
@ -29,7 +29,7 @@ const sendRequest = (dispatch, getState, endpoint) => {
url: '//'+getState().mopidy.host+':'+getState().mopidy.port+'/iris/http/proxy_request'
};
$.ajax(config).then(
$.ajax(config).then(
response => {
dispatch(uiActions.stopLoading(loader_key));
resolve(response.response);

View File

@ -1,6 +1,6 @@
export default function reducer(genius = {}, action){
switch (action.type) {
switch (action.type){
case 'GENIUS_CONNECT':
case 'GENIUS_CONNECTING':