Merge pull request #10 from Fluffy-Bean/deepsource-transform-02fbb8b7

style: format code with Prettier
This commit is contained in:
Michał 2024-05-26 21:58:02 +01:00 committed by GitHub
commit ec80ed92a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,14 +32,14 @@ export function getMonth(date: Date): string {
}
export function getDaySuffix(date: Date): string {
let suffix = 'th';
let suffix = "th";
if (date.getDate() % 10 === 1 && date.getDate() !== 11) {
suffix = 'st';
suffix = "st";
} else if (date.getDate() % 10 === 2 && date.getDate() !== 12) {
suffix = 'nd';
suffix = "nd";
} else if (date.getDate() % 10 === 3 && date.getDate() !== 13) {
suffix = 'rd';
suffix = "rd";
}
return suffix;
}
}