Chromium Code Reviews| Index: utils/pub/oauth2.dart |
| diff --git a/utils/pub/oauth2.dart b/utils/pub/oauth2.dart |
| index 55245f3431c8d99c0b4f809168a4a4ad9e777ece..69364d37e0a1f7de741f4383b8418c551fa18bca 100644 |
| --- a/utils/pub/oauth2.dart |
| +++ b/utils/pub/oauth2.dart |
| @@ -66,9 +66,7 @@ Credentials _credentials; |
| void clearCredentials(SystemCache cache) { |
| _credentials = null; |
| var credentialsFile = _credentialsFile(cache); |
| - if (!fileExists(credentialsFile)) return; |
| - |
| - deleteFile(credentialsFile); |
| + if (entryExists(credentialsFile)) deleteEntry(credentialsFile); |
|
Bob Nystrom
2013/03/27 20:10:09
Why entryExists here?
nweiz
2013/03/27 20:36:29
If, through some weird fluke or user craziness, "c
|
| } |
| /// Asynchronously passes an OAuth2 [Client] to [fn], and closes the client when |