Skip to content

Commit fb8a3ce

Browse files
Flow: remove unnecessary '%checks' (#3101)
1 parent 27d519b commit fb8a3ce

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/language/lexer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class Lexer {
7575
/**
7676
* @internal
7777
*/
78-
export function isPunctuatorTokenKind(kind: TokenKindEnum): boolean %checks {
78+
export function isPunctuatorTokenKind(kind: TokenKindEnum): boolean {
7979
return (
8080
kind === TokenKind.BANG ||
8181
kind === TokenKind.DOLLAR ||

src/type/definition.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ export type GraphQLArgument = {
999999
astNode: ?InputValueDefinitionNode,
10001000
};
10011001

1002-
export function isRequiredArgument(arg: GraphQLArgument): boolean %checks {
1002+
export function isRequiredArgument(arg: GraphQLArgument): boolean {
10031003
return isNonNullType(arg.type) && arg.defaultValue === undefined;
10041004
}
10051005

@@ -1593,9 +1593,7 @@ export type GraphQLInputField = {
15931593
astNode: ?InputValueDefinitionNode,
15941594
};
15951595

1596-
export function isRequiredInputField(
1597-
field: GraphQLInputField,
1598-
): boolean %checks {
1596+
export function isRequiredInputField(field: GraphQLInputField): boolean {
15991597
return isNonNullType(field.type) && field.defaultValue === undefined;
16001598
}
16011599

0 commit comments

Comments
 (0)