File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ impl Cli {
112112 }
113113
114114 pub fn get_filters ( & self , packages : & Packages , all_dependency_types : & [ DependencyType ] ) -> Option < GroupSelector > {
115- if !self . dependencies . is_empty ( ) && !self . dependency_types . is_empty ( ) && !self . packages . is_empty ( ) && !self . specifier_types . is_empty ( ) {
115+ if self . dependencies . is_empty ( ) && self . dependency_types . is_empty ( ) && self . packages . is_empty ( ) && self . specifier_types . is_empty ( ) {
116+ None
117+ } else {
116118 Some ( GroupSelector :: new (
117119 /* all_packages: */ packages,
118120 /* include_dependencies: */ self . dependencies . clone ( ) ,
@@ -122,8 +124,6 @@ impl Cli {
122124 /* include_specifier_types: */ self . specifier_types . clone ( ) ,
123125 /* all_dependency_types: */ all_dependency_types,
124126 ) )
125- } else {
126- None
127127 }
128128 }
129129}
You can’t perform that action at this time.
0 commit comments