Remove all string object references (#586)

This commit is contained in:
Schuyler Cebulskie
2016-09-03 11:58:28 -04:00
committed by Amish Shah
parent ec0a5cdfbc
commit d97ce2e181
10 changed files with 19 additions and 23 deletions

View File

@@ -198,7 +198,7 @@ class Role {
* }
*/
hasPermission(permission, explicit = false) {
if (permission instanceof String || typeof permission === 'string') {
if (typeof permission === 'string') {
permission = Constants.PermissionFlags[permission];
}
@@ -216,7 +216,7 @@ class Role {
}
/**
* When concatenated with a String, this automatically concatenates the Role mention rather than the Role object.
* When concatenated with a string, this automatically concatenates the Role mention rather than the Role object.
* @returns {string}
*/
toString() {