File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,13 +171,13 @@ impl OAuthFlow {
171171 let app_secret = self . parse_client_secrets ( & json_str) ?;
172172
173173 // Try to load existing valid credentials
174- if let Some ( ref token_path) = token_file_path {
175- if let Ok ( credentials) = Credentials :: from_file ( token_path. as_ref ( ) ) {
176- if credentials . is_valid ( ) && credentials. has_scopes ( scopes ) {
177- info ! ( "Using existing valid credentials" ) ;
178- return Ok ( credentials ) ;
179- }
180- }
174+ if let Some ( ref token_path) = token_file_path
175+ && let Ok ( credentials) = Credentials :: from_file ( token_path. as_ref ( ) )
176+ && credentials. is_valid ( )
177+ && credentials. has_scopes ( scopes )
178+ {
179+ info ! ( "Using existing valid credentials" ) ;
180+ return Ok ( credentials ) ;
181181 }
182182
183183 info ! ( "No valid credentials found - starting OAuth flow" ) ;
You can’t perform that action at this time.
0 commit comments