Skip to content

Commit 8a213d9

Browse files
committed
chore: remove environment check because of duplication on the warn method
1 parent 590adbb commit 8a213d9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/util/params.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ export function fillParams (
2424

2525
return filler(params, { pretty: true })
2626
} catch (e) {
27-
if (process.env.NODE_ENV !== 'production') {
28-
// Fix #3072 no warn if `pathMatch` is string
29-
warn(typeof params.pathMatch === 'string', `missing param for ${routeMsg}: ${e.message}`)
30-
}
27+
// Fix #3072 no warn if `pathMatch` is string
28+
warn(typeof params.pathMatch === 'string', `missing param for ${routeMsg}: ${e.message}`)
3129
return ''
3230
} finally {
3331
// delete the 0 if it was added

0 commit comments

Comments
 (0)