Skip to content

Commit

Permalink
refactored for better clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
acidtone committed Jul 23, 2022
1 parent e978295 commit 8b15401
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/dice-roller.js
@@ -1,7 +1,6 @@
const isFairDie = faces => {
const validFaces = [2, 4, 6, 8, 10, 12, 20];
if (validFaces.includes(faces)) return true;
return false;
return validFaces.includes(faces);
}

const tokyoDie = [
Expand Down

0 comments on commit 8b15401

Please sign in to comment.