Skip to content

Commit

Permalink
Replace opt.isPresent() with opt.present
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbertrand committed Jun 20, 2024
1 parent ccd4aeb commit 6ed266e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,13 @@ class AbstractAsciidoctorTask extends AbstractJvmModelExecTask<AsciidoctorJvmExe
private final Provider<Map<String, Map<String, Object>>> attributesByLangProvider = project.provider {
def attributesByLang = [:]
languagesAsOptionals.each { lang ->
if (lang.isPresent()) {
if (lang.present) {
attributesByLang.put(lang.get(), getAsciidoctorJExtension().getAttributesForLang(lang.get()))
}
}
attributesByLang
} as Provider<Map<String, Map<String, Object>>>


@Delegate
private final DefaultAsciidoctorFileOperations asciidoctorTaskFileOperations

Expand Down

0 comments on commit 6ed266e

Please sign in to comment.