mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Fix linter issues in sites/
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = {
|
||||
},
|
||||
async channels() {
|
||||
const data = await axios
|
||||
.get(`https://contenthub-api.eco.astro.com.my/channel/all.json`)
|
||||
.get('https://contenthub-api.eco.astro.com.my/channel/all.json')
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
|
||||
@@ -85,7 +85,7 @@ function parseItems(content, date) {
|
||||
const schedules = data.response.schedule
|
||||
|
||||
return schedules[date.format('YYYY-MM-DD')] || []
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user