Skip to content

Commit

Permalink
strip whitespace from announcement file before processing
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam authored Jan 23, 2025
1 parent 7c54d4a commit de5361d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ async function setupAnnouncementBanner() {
);
}
const data = await response.text();
data = data.trim();
if (data.length === 0) {
console.log(`[PST]: Empty announcement at: ${pstAnnouncementUrl}`);
return;
Expand Down

0 comments on commit de5361d

Please sign in to comment.