mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 13:37:01 +03:00
Only pass error if it exists
This commit is contained in:
@@ -45,7 +45,7 @@ export class YouTubeAPI {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Logger.debug("redis: fetched video information from cache: " + videoID);
|
Logger.debug("redis: fetched video information from cache: " + videoID);
|
||||||
callback(getErr.message, JSON.parse(result));
|
callback(getErr?.message, JSON.parse(result));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user