Skip to content

Commit b123f9f

Browse files
committed
fix: use template literals instead of string concatenation to fix ESLint errors
1 parent e5ce13c commit b123f9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/getAllMetadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export async function getAllMetadata() {
3838
*/
3939
export const getMetadataFromPath = cache(async (urlPath: string) => {
4040
// Convert URL path to possible file paths
41-
const directPath = urlPath.substring(1) + '.mdx' // Remove leading slash
42-
const indexPath = urlPath.substring(1) + '/index.mdx'
41+
const directPath = `${urlPath.substring(1)}.mdx` // Remove leading slash
42+
const indexPath = `${urlPath.substring(1)}/index.mdx`
4343

4444
// Try direct path first, then index path
4545
let filePath: string | null = null

0 commit comments

Comments
 (0)