Skip to content

Commit bdfb47d

Browse files
committed
Follow best practices.
1 parent 1e94c09 commit bdfb47d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smarty-rust-sdk/src/sdk/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ impl Client {
6868
format!("smarty (sdk:rust@{})", VERSION),
6969
);
7070

71-
if !self.options.custom_queries.is_none() {
72-
for (key, value) in self.options.custom_queries.clone().unwrap() {
71+
if let Some(queries) = self.options.custom_queries.clone() {
72+
for (key, value) in queries {
7373
builder = builder.query(&[(key, value)]);
7474
}
7575
}

0 commit comments

Comments
 (0)