We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bed3141 commit 16992c7Copy full SHA for 16992c7
1 file changed
internal/windowsx/wsl_windows.go
@@ -17,14 +17,14 @@ var (
17
)
18
19
func Username() (string, error) {
20
- if len(appData) == 0 {
+ if len(username) == 0 {
21
return ``, errors.New(`%USERNAME% is empty`)
22
}
23
return username, nil
24
25
26
func UserProfile() (string, error) {
27
+ if len(userProfile) == 0 {
28
return ``, errors.New(`%USERPROFILE% is empty`)
29
30
return userProfile, nil
@@ -38,7 +38,7 @@ func AppData() (string, error) {
38
39
40
func LocalAppData() (string, error) {
41
+ if len(localAppData) == 0 {
42
return ``, errors.New(`%LocalAppData% is empty`)
43
44
return localAppData, nil
0 commit comments