Fixed eslint issue

This commit is contained in:
Grzegorz Leoniec 2019-01-07 20:25:05 +01:00
parent cffce564ea
commit a313f941c5
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -1,6 +1,5 @@
import request from 'request'
const asyncForEach = async (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array)
@ -19,7 +18,7 @@ const fetch = url => {
})
}
const createOrUpdateLocations = async (userId, locationName, driver) =>{
const createOrUpdateLocations = async (userId, locationName, driver) => {
if (!locationName) {
return
}