File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"geode" : " 4.0.0-alpha.1" ,
3
- "version" : " v1.6.4 " ,
3
+ "version" : " v1.6.5 " ,
4
4
"gd" : {
5
5
"win" : " 2.2074" ,
6
6
"android" : " 2.2074" ,
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ Pack::~Pack() {
215
215
Result<std::shared_ptr<Pack>> Pack::from (std::filesystem::path const & dir) {
216
216
#ifdef GEODE_IS_WINDOWS
217
217
try {
218
- auto test = dir.filename ().string ();
218
+ ( void ) dir.filename ().string ();
219
219
} catch (const std::exception& e) {
220
220
return Err (" Invalid path" );
221
221
}
@@ -237,5 +237,7 @@ matjson::Value matjson::Serialize<std::shared_ptr<Pack>>::toJson(std::shared_ptr
237
237
}
238
238
239
239
Result<std::shared_ptr<Pack>> matjson::Serialize<std::shared_ptr<Pack>>::fromJson(matjson::Value const & value) {
240
- return Ok (Pack::from (value[" path" ].as <std::filesystem::path>().unwrap ()).unwrap ());
240
+ GEODE_UNWRAP_INTO (auto path, value[" path" ].as <std::filesystem::path>());
241
+ GEODE_UNWRAP_INTO (auto pack, Pack::from (path));
242
+ return Ok (pack);
241
243
}
You can’t perform that action at this time.
0 commit comments