Skip to content

Commit

Permalink
linter fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOwnership committed Aug 31, 2024
1 parent 1596a5a commit 8f59998
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions commands/rautil/genachnews.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,14 @@ module.exports = class GenerateAchievementNewsCommand extends Command {
const [year, month, day] = json.Released.split('-').map(Number);
const date = new Date(year, month - 1, day);
let releaseDate = null;
switch (json.ReleasedAtGranularity)
{
case "day":
switch (json.ReleasedAtGranularity) {
case 'day':
releaseDate = `${date.toLocaleString('en-us', { month: 'long' })} ${day}, ${year}`;
break;
case "month":
case 'month':
releaseDate = `${date.toLocaleString('en-us', { month: 'long' })} ${year}`;
break;
case "year":
case 'year':
releaseDate = `${year}`;
break;
default:
Expand Down

0 comments on commit 8f59998

Please sign in to comment.