Fix undefined variable in Windows-specific test

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
v0.8
Paul "TBBle" Hampson 2020-07-28 03:10:12 +10:00
parent b5e6d54910
commit 0c9d862645
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ func TestCheckSystemDriveAndRemoveDriveLetter(t *testing.T) {
t.Fatalf("Expected error for d:")
}
var path string
// Single character is unchanged
if path, err = CheckSystemDriveAndRemoveDriveLetter("z"); err != nil {
t.Fatalf("Single character should pass")