implicit-casts:false in dev (#45787)
This commit is contained in:
committed by
GitHub
parent
fa0c49d775
commit
ec1a015045
@@ -194,8 +194,10 @@ class TaskResult {
|
||||
/// Constructs a successful result using JSON data stored in a file.
|
||||
factory TaskResult.successFromFile(File file,
|
||||
{List<String> benchmarkScoreKeys}) {
|
||||
return TaskResult.success(json.decode(file.readAsStringSync()),
|
||||
benchmarkScoreKeys: benchmarkScoreKeys);
|
||||
return TaskResult.success(
|
||||
json.decode(file.readAsStringSync()) as Map<String, dynamic>,
|
||||
benchmarkScoreKeys: benchmarkScoreKeys,
|
||||
);
|
||||
}
|
||||
|
||||
/// Constructs an unsuccessful result.
|
||||
|
||||
Reference in New Issue
Block a user