Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72d1af7

Browse files
author
Travis CI
committed
Deploy 784e71b to NPM branch
1 parent ba9bded commit 72d1af7

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

utilities/lexicographicSortSchema.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ function lexicographicSortSchema(schema) {
139139
return sortInputFields(_config4.fields);
140140
}
141141
}));
142-
}
142+
} // Not reachable. All possible type definition nodes have been considered.
143+
144+
/* istanbul ignore next */
145+
143146

144147
throw new Error("Unknown type: \"".concat(type, "\""));
145148
}

utilities/lexicographicSortSchema.js.flow

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema {
139139
fields: () => sortInputFields(config.fields),
140140
});
141141
}
142-
throw new Error(`Unknown type: "${type}"`);
142+
143+
// Not reachable. All possible type definition nodes have been considered.
144+
/* istanbul ignore next */
145+
throw new Error(`Unknown type: "${(type: empty)}"`);
143146
}
144147
}
145148

utilities/lexicographicSortSchema.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ export function lexicographicSortSchema(schema) {
133133
return sortInputFields(_config4.fields);
134134
}
135135
}));
136-
}
136+
} // Not reachable. All possible type definition nodes have been considered.
137+
138+
/* istanbul ignore next */
139+
137140

138141
throw new Error("Unknown type: \"".concat(type, "\""));
139142
}

0 commit comments

Comments
 (0)