Skip to content

Commit

Permalink
Flow: remove unnecessary '%checks' (#3101)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 16, 2021
1 parent 27d519b commit fb8a3ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/language/lexer.js
Expand Up @@ -75,7 +75,7 @@ export class Lexer {
/**
* @internal
*/
export function isPunctuatorTokenKind(kind: TokenKindEnum): boolean %checks {
export function isPunctuatorTokenKind(kind: TokenKindEnum): boolean {
return (
kind === TokenKind.BANG ||
kind === TokenKind.DOLLAR ||
Expand Down
6 changes: 2 additions & 4 deletions src/type/definition.js
Expand Up @@ -999,7 +999,7 @@ export type GraphQLArgument = {
astNode: ?InputValueDefinitionNode,
};

export function isRequiredArgument(arg: GraphQLArgument): boolean %checks {
export function isRequiredArgument(arg: GraphQLArgument): boolean {
return isNonNullType(arg.type) && arg.defaultValue === undefined;
}

Expand Down Expand Up @@ -1593,9 +1593,7 @@ export type GraphQLInputField = {
astNode: ?InputValueDefinitionNode,
};

export function isRequiredInputField(
field: GraphQLInputField,
): boolean %checks {
export function isRequiredInputField(field: GraphQLInputField): boolean {
return isNonNullType(field.type) && field.defaultValue === undefined;
}

Expand Down

0 comments on commit fb8a3ce

Please sign in to comment.