Index: utils/pub/oauth2.dart |
diff --git a/utils/pub/oauth2.dart b/utils/pub/oauth2.dart |
index 3ea33cc1d0d9a2f755465229c82031bfd7942c76..b690c6c85cd13d3f61c8480caa6ffcc7566b1ad5 100644 |
--- a/utils/pub/oauth2.dart |
+++ b/utils/pub/oauth2.dart |
@@ -118,7 +118,7 @@ Credentials _loadCredentials(SystemCache cache) { |
if (_credentials != null) return _credentials; |
var path = _credentialsFile(cache); |
- if (!fileExists(path)) return; |
+ if (!fileExists(path)) return null; |
var credentials = new Credentials.fromJson(readTextFile(path)); |
if (credentials.isExpired && !credentials.canRefresh) { |