Skip to content

Commit 16992c7

Browse files
committed
windows: fix wrong var usage
1 parent bed3141 commit 16992c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/windowsx/wsl_windows.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ var (
1717
)
1818

1919
func Username() (string, error) {
20-
if len(appData) == 0 {
20+
if len(username) == 0 {
2121
return ``, errors.New(`%USERNAME% is empty`)
2222
}
2323
return username, nil
2424
}
2525

2626
func UserProfile() (string, error) {
27-
if len(appData) == 0 {
27+
if len(userProfile) == 0 {
2828
return ``, errors.New(`%USERPROFILE% is empty`)
2929
}
3030
return userProfile, nil
@@ -38,7 +38,7 @@ func AppData() (string, error) {
3838
}
3939

4040
func LocalAppData() (string, error) {
41-
if len(appData) == 0 {
41+
if len(localAppData) == 0 {
4242
return ``, errors.New(`%LocalAppData% is empty`)
4343
}
4444
return localAppData, nil

0 commit comments

Comments
 (0)