Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Unified Diff: lib/src/credentials.dart

Issue 1953643002: Fix all strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/oauth2.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/authorization_code_grant.dart ('k') | lib/src/handle_access_token_response.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/credentials.dart
diff --git a/lib/src/credentials.dart b/lib/src/credentials.dart
index 49d2a6415975b1a1ddb0da2030bc5bc564d13ff1..14809e15dacab8960ec32040100fb50de7828074 100644
--- a/lib/src/credentials.dart
+++ b/lib/src/credentials.dart
@@ -132,7 +132,7 @@ class Credentials {
parsed['accessToken'],
refreshToken: parsed['refreshToken'],
tokenEndpoint: tokenEndpoint,
- scopes: scopes,
+ scopes: (scopes as List).map((scope) => scope as String),
expiration: expiration);
}
@@ -184,7 +184,7 @@ class Credentials {
"endpoint.");
}
- var headers = {};
+ var headers = <String, String>{};
var body = {
"grant_type": "refresh_token",
« no previous file with comments | « lib/src/authorization_code_grant.dart ('k') | lib/src/handle_access_token_response.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698