mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-28 16:07:02 +01:00
Remove obsolete close() calls
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user