Remove default arguments from function definitions

This commit is contained in:
Omar Roth
2019-07-20 20:33:44 -05:00
parent f18d8229c0
commit d034fecc89
3 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,6 @@
function get_playlist(plid, retries = 5) {
function get_playlist(plid, retries) {
if (retries == undefined) retries = 5;
if (retries <= 0) {
console.log('Failed to pull playlist');
return;