mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 14:28:20 +00:00
remove unused path
This commit is contained in:
@@ -127,7 +127,6 @@ export const secretFolderServiceFactory = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
let currentParentId = parentFolder.id;
|
let currentParentId = parentFolder.id;
|
||||||
let currentPath = parentFolder.path;
|
|
||||||
|
|
||||||
// build the full path we need by processing each segment
|
// build the full path we need by processing each segment
|
||||||
if (parentFolder.path !== secretPath) {
|
if (parentFolder.path !== secretPath) {
|
||||||
@@ -151,7 +150,6 @@ export const secretFolderServiceFactory = ({
|
|||||||
if (existingSegment) {
|
if (existingSegment) {
|
||||||
// use existing folder and update the path / parent
|
// use existing folder and update the path / parent
|
||||||
currentParentId = existingSegment.id;
|
currentParentId = existingSegment.id;
|
||||||
currentPath = path.join(currentPath, segment);
|
|
||||||
} else {
|
} else {
|
||||||
const newFolder = {
|
const newFolder = {
|
||||||
name: segment,
|
name: segment,
|
||||||
@@ -162,7 +160,6 @@ export const secretFolderServiceFactory = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
currentParentId = newFolder.id;
|
currentParentId = newFolder.id;
|
||||||
currentPath = path.join(currentPath, segment);
|
|
||||||
newFolders.push(newFolder);
|
newFolders.push(newFolder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user