Skip to content

Commit

Permalink
Merge pull request #569 from nextcloud/fix/dead-code
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed Jan 24, 2023
2 parents 84feca3 + c805746 commit 9ebcc9b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,6 @@ export function getPlural(number: number) {
language = 'xbr'
}

if (typeof language === 'undefined' || language === '') {
return number === 1 ? 0 : 1
}

if (language.length > 3) {
language = language.substring(0, language.lastIndexOf('-'))
}
Expand Down

0 comments on commit 9ebcc9b

Please sign in to comment.