Skip to content

Commit

Permalink
linty
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilGale92 committed Sep 24, 2023
1 parent f94df22 commit c944d80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/utils/resolveModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ function customPathNormalize(inputPath) {
for (const segment of segments) {
if (segment === '..') {
// Handle '..' to go up one directory level
if (normalizedSegments.length > 0 && normalizedSegments[normalizedSegments.length - 1] !== '..') {
if (
normalizedSegments.length > 0 &&
normalizedSegments[normalizedSegments.length - 1] !== '..'
) {
normalizedSegments.pop();
} else {
normalizedSegments.push('..');
Expand Down

0 comments on commit c944d80

Please sign in to comment.