Skip to content

Commit 043772f

Browse files
committed
Fixes Windows codepath
1 parent dd8696b commit 043772f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/config_default_credentials.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ fn config_dir() -> Result<PathBuf, Error> {
121121
.map_err(|_| Error::Str("APPDATA environment variable not found"))?;
122122
let config_path = PathBuf::from(app_data);
123123
match config_path.exists() {
124-
true => Ok(home),
124+
true => Ok(config_path),
125125
false => Err(Error::Str("APPDATA directory not found")),
126126
}
127-
Ok(home)
128127
}
129128

130129
const DEFAULT_TOKEN_GCP_URI: &str = "https://accounts.google.com/o/oauth2/token";

0 commit comments

Comments
 (0)