Commit fa47c34f authored by Yegor's avatar Yegor Committed by GitHub

fix version stamp Map check (#9890)

parent a2958529
...@@ -285,8 +285,9 @@ class VersionCheckStamp { ...@@ -285,8 +285,9 @@ class VersionCheckStamp {
try { try {
final dynamic json = JSON.decode(versionCheckStamp); final dynamic json = JSON.decode(versionCheckStamp);
if (json is Map) { if (json is Map) {
printTrace('Warning: expected version stamp to be a Map but found: $json');
return fromJson(json); return fromJson(json);
} else {
printTrace('Warning: expected version stamp to be a Map but found: $json');
} }
} catch (error, stackTrace) { } catch (error, stackTrace) {
// Do not crash if JSON is malformed. // Do not crash if JSON is malformed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment