mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
Remove obsolete close() calls
This commit is contained in:
parent
ec06a1a05b
commit
7006bcb038
@ -18,7 +18,7 @@ namespace json
|
||||
std::string obj_str;
|
||||
obj_str.resize(length);
|
||||
file.read(obj_str.data(), length);
|
||||
file.close();
|
||||
|
||||
return JsonValue::Parse(winrt::to_hstring(obj_str)).GetObjectW();
|
||||
}
|
||||
return std::nullopt;
|
||||
@ -37,7 +37,6 @@ namespace json
|
||||
{
|
||||
std::string obj_str{winrt::to_string(obj.Stringify())};
|
||||
file.write(obj_str.c_str(), obj_str.size());
|
||||
file.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user