Skip to content

Commit 9eb1973

Browse files
committed
Revert "Check delivering undefined props (#39)"
This reverts commit 35ef8e8.
1 parent f1531a2 commit 9eb1973

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tools/tools.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ type SuperJSONProps<P> = P & {
1010
};
1111

1212
export function withSuperJSONProps<P>(
13-
gssp: GetServerSideProps<P> | undefined,
13+
gssp: GetServerSideProps<P>,
1414
exclude: string[] = []
15-
): GetServerSideProps<SuperJSONProps<P>> | undefined {
16-
if (gssp === undefined)
17-
return undefined;
15+
): GetServerSideProps<SuperJSONProps<P>> {
1816
return async function withSuperJSON(...args) {
1917
const result = await gssp(...args);
2018

@@ -57,8 +55,6 @@ export function withSuperJSONInitProps(
5755
gip: any,
5856
exclude: string[] = []
5957
): any {
60-
if (gip === undefined)
61-
return undefined;
6258
return async function withSuperJSON(...args: any[]) {
6359
const result = await gip(...args);
6460

0 commit comments

Comments
 (0)