Skip to content

Commit d5ab69d

Browse files
committed
Fix (probably) last Codacy errors
1 parent 8cfccd0 commit d5ab69d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/Api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ class Api {
4949
}
5050
}));
5151
})
52-
.catch(err => console.error(err));
52+
.catch(err => reject(err));
5353
});
5454

5555
/**
5656
* Returns promise with all sites in given category
5757
* @param category
5858
* @returns {Promise}
5959
*/
60-
static getSites = (category) => Firebase.database().ref(`/Sites/${category}`).once('value')
60+
static getSites = category => Firebase.database().ref(`/Sites/${category}`).once('value')
6161
.then(snapshot => snapshot.val());
6262

6363
/**
@@ -66,6 +66,6 @@ class Api {
6666
*/
6767
static getCategories = () => Firebase.database().ref('/Categories').once('value')
6868
.then(snapshot => snapshot.val());
69-
};
69+
}
7070

7171
export default Api;

0 commit comments

Comments
 (0)