feat: prefer first variable
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
8520bcb5b0
commit
1d1ac49d0b
@ -151,13 +151,13 @@ fn filter_by_prefix(variables: Vec<CuddleVariable>) -> impl Function {
|
||||
})
|
||||
.collect::<Vec<CuddleVariable>>();
|
||||
|
||||
tracing::info!("was here");
|
||||
|
||||
let mut structure: HashMap<String, String> = HashMap::new();
|
||||
for var in vars {
|
||||
if !structure.contains_key(&var.name) {
|
||||
tracing::info!("found: {} - {}", &var.name, &var.value);
|
||||
structure.insert(var.name, var.value);
|
||||
}
|
||||
}
|
||||
|
||||
Ok(serde_json::to_value(structure).unwrap())
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user