Index: pkg/oauth2/lib/src/credentials.dart |
diff --git a/pkg/oauth2/lib/src/credentials.dart b/pkg/oauth2/lib/src/credentials.dart |
index b02f4705d09dfe1ddceb0816396dc7f0f07ef1b4..5bbec169d65969fb7c54761b61fb9ab728a9aebb 100644 |
--- a/pkg/oauth2/lib/src/credentials.dart |
+++ b/pkg/oauth2/lib/src/credentials.dart |
@@ -81,8 +81,7 @@ class Credentials { |
var parsed; |
try { |
parsed = JSON.parse(json); |
- } catch (e) { |
- // TODO(nweiz): narrow this catch clause once issue 6775 is fixed. |
+ } on FormatException catch (e) { |
validate(false, 'invalid JSON'); |
} |