mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 20:47:02 +03:00
Only pass error if it exists
This commit is contained in:
@@ -45,7 +45,7 @@ export class YouTubeAPI {
|
||||
});
|
||||
} else {
|
||||
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