Skip to content

Commit

Permalink
Don't call the github api on every request if we can't parse the clie…
Browse files Browse the repository at this point in the history
…nt release (#416)
  • Loading branch information
Sheikah45 authored Jan 3, 2023
1 parent d8b44ba commit bba1982
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion routes/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ exports.getLatestClientRelease = function(req, res, next) {
try {
clientLink = JSON.parse(data);
} catch (e) {
exec('node scripts/getLatestClientRelease.js');
clientLink = {};
clientLink.fafClientLink = 'https://github.com/FAForever/downlords-faf-client/releases';
}
Expand Down

0 comments on commit bba1982

Please sign in to comment.