Skip to content

Commit ad75066

Browse files
committed
cleanup
1 parent 2346f7b commit ad75066

File tree

1 file changed

+2
-2
lines changed
  • rd-cli-tool/src/main/java/org/rundeck/client/tool/commands/projects

1 file changed

+2
-2
lines changed

rd-cli-tool/src/main/java/org/rundeck/client/tool/commands/projects/Archives.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)