refactor(constant): Screaming camel MAX_LEVEL

This commit is contained in:
Sabe Jones
2015-11-18 15:14:47 -05:00
parent 31b68219d1
commit ed443b490a
2 changed files with 4 additions and 4 deletions

View File

@@ -4,11 +4,11 @@
------------------------------------------------------
*/
export const maxLevel = 100;
export const MAX_LEVEL = 100;
export function capByLevel (lvl) {
if (lvl > maxLevel) {
return maxLevel;
if (lvl > MAX_LEVEL) {
return MAX_LEVEL;
} else {
return lvl;
}