We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7579367 commit bc1faf3Copy full SHA for bc1faf3
fplus-lib/src/core/allocator/mod.rs
@@ -56,7 +56,11 @@ fn content_items_to_allocator_model(file: ContentItems) -> Result<AllocatorModel
56
57
match decode_allocator_model(&cleaned_content) {
58
Some(mut model) => {
59
- let owner_repo_parts: Vec<&str> = model.application.allocation_bookkeeping.split('/').collect();
+ let mut owner_repo_parts: Vec<&str> = model.application.allocation_bookkeeping.split('/').collect();
60
+ // If last part is empty, remove it
61
+ if owner_repo_parts[owner_repo_parts.len() - 1].is_empty() {
62
+ owner_repo_parts.pop();
63
+ }
64
if owner_repo_parts.len() < 2 {
65
log::error!("Failed to parse allocator model");
66
return Err(LDNError::Load("Failed to parse allocator model".to_string()));
0 commit comments