File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -445,13 +445,13 @@ pub fn meta_dir(version string) string {
445445fn read_platforms_json (version string ) ? map [string ]json2 .Any {
446446 mut platforms_json_file := cache.get_string (@MOD + '.' + @FN + '${version} ' )
447447 if platforms_json_file != '' {
448- platforms_json := json2 .raw_decode (platforms_json_file) or { return none }
448+ platforms_json := json2 .decode[json 2 .Any] (platforms_json_file) or { return none }
449449 platforms := platforms_json.as_map ()
450450 return platforms
451451 }
452452 platforms_json_path := os.join_path (meta_dir (version), 'platforms.json' )
453453 platforms_json_file = os.read_file (platforms_json_path) or { return none }
454- platforms_json := json2 .raw_decode (platforms_json_file) or { return none }
454+ platforms_json := json2 .decode[json 2 .Any] (platforms_json_file) or { return none }
455455 platforms := platforms_json.as_map ()
456456 cache.set_string (@MOD + '.' + @FN + '${version} ' , platforms_json_file)
457457 return platforms
You can’t perform that action at this time.
0 commit comments