feat: prefer first variable
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
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