From 573159971365395b595ad98e8e7432b4af80f9b1 Mon Sep 17 00:00:00 2001 From: Karl Klose Date: Tue, 10 Nov 2020 15:29:46 +0000 Subject: [PATCH] [infra] Fix bug in firestore library Change-Id: Ic209ecd3ec52380a9dd1f214be3b854a64e03d9a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/171283 Auto-Submit: Karl Klose Reviewed-by: Alexander Thomas Commit-Queue: Alexander Thomas --- tools/bots/lib/src/firestore.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;