diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-04-16 20:55:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-16 20:55:53 +0200 |
commit | 8d44f491cdcce9a10cbd23ba2eab583fe2785e36 (patch) | |
tree | 87a6cb5f2c6d761f7ea79c892c975f352903eeb2 /src-tauri/src/mod_management | |
parent | 05f39a0cf0c2f5b00dcbc44e7b3fb9e228343c90 (diff) | |
download | FlightCore-8d44f491cdcce9a10cbd23ba2eab583fe2785e36.tar.gz FlightCore-8d44f491cdcce9a10cbd23ba2eab583fe2785e36.zip |
fix: Fix incorrect is_empty check (#270)
Fixes a regression introduced in #244 that prevented any Thunderstore
mods from being uninstalled
Closes #269
Diffstat (limited to 'src-tauri/src/mod_management')
-rw-r--r-- | src-tauri/src/mod_management/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/mod_management/mod.rs b/src-tauri/src/mod_management/mod.rs index 7261619e..76e258d1 100644 --- a/src-tauri/src/mod_management/mod.rs +++ b/src-tauri/src/mod_management/mod.rs @@ -480,7 +480,7 @@ pub fn delete_thunderstore_mod( } } - if !mod_folders_to_remove.is_empty() { + if mod_folders_to_remove.is_empty() { return Err(format!( "No mods removed as no Northstar mods matching {thunderstore_mod_string} were found to be installed." )); |