Refactor relationship type retrieval in user character workers: Simplify the extraction of relationship types in UserCharacterWorker, CharacterCreationWorker, and EventsWorker by replacing and_then with map for improved readability and consistency.

This commit is contained in:
Torsten Schulz (local)
2026-01-23 10:52:59 +01:00
parent c8668c59eb
commit 2ac474fe0c
3 changed files with 3 additions and 3 deletions

View File

@@ -1797,7 +1797,7 @@ impl EventsWorker {
.and_then(|v| v.parse::<i32>().ok());
let relationship_type_tr = row
.get("relationship_type_tr")
.and_then(|v| v.as_str().map(|s| s.to_string()));
.map(|s| s.to_string());
// Logging: Relationship wurde gelöscht
eprintln!(