From d071b879b0ba201b3d1a54991ec63026dc5d55a0 Mon Sep 17 00:00:00 2001 From: Travis Glenn Hansen Date: Thu, 5 May 2022 20:55:41 -0600 Subject: [PATCH] proper scope for variable Signed-off-by: Travis Glenn Hansen --- src/driver/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/driver/index.js b/src/driver/index.js index 2bcacf2..0323644 100644 --- a/src/driver/index.js +++ b/src/driver/index.js @@ -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");