File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
rd-cli-tool/src/main/java/org/rundeck/client/tool/commands/projects Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -203,12 +203,12 @@ public int importArchive(@CommandLine.Mixin ArchiveImportOpts opts) throws Input
203203 RequestBody body = RequestBody .create (input , Client .MEDIA_TYPE_ZIP );
204204
205205 Map <String , String > extraCompOpts = new HashMap <>();
206- if (opts .components != null && opts .components .size () > 0 ) {
206+ if (opts .components != null && ! opts .components .isEmpty () ) {
207207 for (String component : opts .components ) {
208208 extraCompOpts .put ("importComponents." + component , "true" );
209209 }
210210 }
211- if (opts .componentOptions != null && opts .componentOptions .size () > 0 ) {
211+ if (opts .componentOptions != null && ! opts .componentOptions .isEmpty () ) {
212212 for (Map .Entry <String , String > stringStringEntry : opts .componentOptions .entrySet ()) {
213213 extraCompOpts .put ("importOpts." + stringStringEntry .getKey (), stringStringEntry .getValue ());
214214 }
You can’t perform that action at this time.
0 commit comments