mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-18 03:26:25 +01:00
Update crates/cashu/src/nuts/nut18.rs
Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
This commit is contained in:
@@ -117,11 +117,7 @@ impl TransportBuilder {
|
||||
|
||||
/// Add a tag
|
||||
pub fn add_tag(mut self, tag: Vec<String>) -> Self {
|
||||
if let Some(ref mut tags) = self.tags {
|
||||
tags.push(tag);
|
||||
} else {
|
||||
self.tags = Some(vec![tag]);
|
||||
}
|
||||
self.tags.get_or_insert_with(Vec::new).push(tag);
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user