diff --git a/tools/bots/lib/src/firestore.dart b/tools/bots/lib/src/firestore.dart index 44344e2414a..166173cdc99 100644 --- a/tools/bots/lib/src/firestore.dart +++ b/tools/bots/lib/src/firestore.dart @@ -70,7 +70,7 @@ class FirestoreDatabase { var response = await _client.get(url, headers: _headers); if (response.statusCode == HttpStatus.ok) { var document = jsonDecode(response.body); - if (!document is Map) { + if (document is! Map) { throw _error(response, message: 'Expected a Map'); } return document;