Skip to content

Commit ce3f8bf

Browse files
committed
simplify regex matching logic in list_functions
1 parent f0b2b28 commit ce3f8bf

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

dsc/src/subcommand.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,9 @@ fn list_functions(functions: &FunctionDispatcher, function_name: Option<&String>
734734
continue;
735735
}
736736

737-
if let Some(ref description_regex) = description_regex {
738-
if !description_regex.is_match(&function.description) {
739-
continue;
740-
}
737+
if let Some(ref description_regex) = description_regex
738+
&& !description_regex.is_match(&function.description) {
739+
continue;
741740
}
742741

743742
if write_table {

0 commit comments

Comments
 (0)