Skip to content

Commit

Permalink
Move around some return logic
Browse files Browse the repository at this point in the history
mbround18 committed Jan 23, 2025
1 parent ff0a336 commit 6762b20
Showing 3 changed files with 524 additions and 331 deletions.
839 changes: 515 additions & 324 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/odin/mods/mod.rs
Original file line number Diff line number Diff line change
@@ -122,10 +122,10 @@ impl ValheimMod {
fn remove_byte_order_mark(&self, value: String) -> String {
if value.contains('\u{feff}') {
debug!("Found and removed UTF-8 BOM");
return value.trim_start_matches('\u{feff}').to_string();
value.trim_start_matches('\u{feff}').to_string()
} else {
value
}

value
}

fn copy_single_file<P1, P2>(&self, from: P1, to: P2)
10 changes: 6 additions & 4 deletions src/odin/notifications/enums/notification_event.rs
Original file line number Diff line number Diff line change
@@ -47,9 +47,10 @@ fn is_webhook_enabled() -> bool {
url
)
}
return is_valid;
is_valid
} else {
false
}
false
}

fn is_webhook_include_public_ip() -> bool {
@@ -59,9 +60,10 @@ fn is_webhook_include_public_ip() -> bool {
.eq("1")
{
debug!("Webhook Include Public IP found!");
return true;
true
} else {
false
}
false
}

pub fn parse_server_name_for_notification() -> String {

0 comments on commit 6762b20

Please sign in to comment.