Skip to content

Commit

Permalink
Implements suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaLaGrotteria committed Oct 23, 2024
1 parent c830ca7 commit 0a6b4c1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.micronaut.guides.core;

import io.micronaut.core.annotation.NonNull;
import io.micronaut.core.util.CollectionUtils;
import io.micronaut.core.util.StringUtils;

import java.nio.file.Paths;
Expand Down Expand Up @@ -60,7 +61,7 @@ public static List<String> addIncludesResources(@NonNull String str, @NonNull St
String appName = extractAppName(str);

List<String> tagNames = extractTags(str);
List<String> tags = tagNames.isEmpty()
List<String> tags = CollectionUtils.isEmpty(tagNames)
? Collections.emptyList()
: tagNames.stream().map(it -> "tag=" + it).toList();

Expand Down

0 comments on commit 0a6b4c1

Please sign in to comment.