proper scope for variable

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2022-05-05 20:55:41 -06:00
parent 7d25f82d9d
commit d071b879b0
1 changed files with 2 additions and 4 deletions

View File

@ -1239,13 +1239,11 @@ class CsiBaseDriver {
const WindowsUtils = require("../utils/windows").Windows;
const wutils = new WindowsUtils();
let win_staging_target_path =
filesystem.covertUnixSeparatorToWindowsSeparator(staging_target_path);
switch (node_attach_driver) {
case "smb":
let win_staging_target_path =
filesystem.covertUnixSeparatorToWindowsSeparator(
staging_target_path
);
device = `//${volume_context.server}/${volume_context.share}`;
const username = driver.getMountFlagValue(mount_flags, "username");
const password = driver.getMountFlagValue(mount_flags, "password");