Skip to content

Commit

Permalink
Refactor method calling to ES6
Browse files Browse the repository at this point in the history
  • Loading branch information
betoharres committed Oct 3, 2016
1 parent 0bfa821 commit 8d24d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/handle-fetch-response.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function parseResponse (response, cb = function(){}) {
export function parseResponse (response, cb = () => {}) {
let json = response.json();
if (response.status >= 200 && response.status < 300) {
return json;
Expand Down

0 comments on commit 8d24d55

Please sign in to comment.