Simplifies path handling for temp directories

Removes unnecessary conditional logic when constructing paths for temporary directories.

The logic previously checked if the plugin directory was absolute before joining it with the directory name. This check is redundant as `path.join` correctly handles both absolute and relative paths.
This commit is contained in:
AlexKucera committed 2025-11-04 11:16:25 +01:00
1 parent 1ca3669e2f
commit 4a0376ec2b
1 file changed
+1 -3
+1 -3
View File
@@ -49,9 +49,7 @@ export class TempDirectoryManager {
const pluginDir = this.getPluginDir();
// Use path.join to properly handle absolute paths
const result = path.isAbsolute(pluginDir)
? path.join(pluginDir, dirName)
: path.join(pluginDir, dirName);
const result = path.join(pluginDir, dirName);
return normalizePath(path.normalize(result));
}