Skip to content

Commit

Permalink
Fixes for flow types
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed Aug 8, 2018
1 parent dc23dfd commit 3f31039
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/helper.js
Expand Up @@ -127,7 +127,7 @@ const reconfigureServer = changedConfiguration => {
});
}
try {
var parseServer;
let parseServer = undefined;
const newConfiguration = Object.assign({}, defaultConfiguration, changedConfiguration, {
__indexBuildCompletionCallbackForTests: indexBuildPromise => indexBuildPromise.then(() => {
resolve(parseServer);
Expand Down
4 changes: 2 additions & 2 deletions src/Controllers/SchemaController.js
Expand Up @@ -864,7 +864,7 @@ export default class SchemaController {
return SchemaController.testBaseCLP(this.perms[className], aclGroup, operation);
}

static testBaseCLP(classPermissions: ?any, className: string, aclGroup: string[], operation: string) {
static testBaseCLP(classPermissions: ?any, aclGroup: string[], operation: string) {
if (!classPermissions || !classPermissions[operation]) {
return true;
}
Expand Down Expand Up @@ -924,7 +924,7 @@ export default class SchemaController {
}

// Validates an operation passes class-level-permissions set in the schema
validatePermission(className, aclGroup, operation) {
validatePermission(className: string, aclGroup: string[], operation: string) {
return SchemaController.validatePermission(this.perms[className], className, aclGroup, operation);
}

Expand Down

0 comments on commit 3f31039

Please sign in to comment.