Code style improvments, to pass SonarCloud review

This commit is contained in:
Alicia Sykes
2021-12-27 00:39:30 +00:00
parent fac3e8e456
commit 15eddb1565
13 changed files with 25 additions and 55 deletions

View File

@@ -36,7 +36,7 @@ export default {
},
count() {
const usersChoice = this.options.count;
if (usersChoice && !Number.isNaN(usersChoice)) return usersChoice;
if (usersChoice && typeof usersChoice === 'number') return usersChoice;
return 10;
},
endpoint() {