Skip to content

Commit 5ba06b3

Browse files
committed
Lint the file
1 parent a81516b commit 5ba06b3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/nextjs/src/server/index.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export function init(options: NodeOptions): NodeClient | undefined {
178178
'AppRouteRouteHandlers',
179179
'ResolveMetadata',
180180
'Middleware',
181-
'NextNodeServerSpan'
181+
'NextNodeServerSpan',
182182
].includes(category);
183183

184184
if (isNextjsSpan && functionName) {
@@ -188,18 +188,15 @@ export function init(options: NodeOptions): NodeClient | undefined {
188188
functionType = 'Component';
189189
} else if (category === 'NextNodeServer' && functionName === 'findPageComponents') {
190190
functionType = 'Page';
191-
}
192-
else if (category === 'NextNodeServerSpan' && functionName === 'getLayoutOrPageModule') {
191+
} else if (category === 'NextNodeServerSpan' && functionName === 'getLayoutOrPageModule') {
193192
if (spanAttributes?.['next.segment'] === '__LAYOUT__') {
194193
functionType = 'Layout';
195194
} else {
196195
functionType = 'Page';
197196
}
198-
199197
}
200198
}
201-
}
202-
199+
}
203200

204201
if (functionType) {
205202
let route = '/';

0 commit comments

Comments
 (0)