Skip to content

Commit c9ded7f

Browse files
committed
Update ParseServer.js
1 parent e1dacd5 commit c9ded7f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/ParseServer.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,10 @@ function addParseCloud() {
446446
const handler2 = {
447447
get(obj, prop) {
448448
if (prop.substring(0, 3) === 'set') {
449-
const validMethod = method => {
450-
if (!ParseServerDefintions[method]) {
451-
throw `${method} is not a valid Parse Server option`;
452-
}
453-
};
454449
const assignValue = (key, value) => {
455-
validMethod(key);
450+
if (!ParseServerDefintions[key]) {
451+
throw `${key} is not a valid Parse Server option`;
452+
}
456453
obj[key] = value;
457454
Config.put(obj);
458455
};

0 commit comments

Comments
 (0)