Skip to content

Commit

Permalink
Remove cast to String
Browse files Browse the repository at this point in the history
  • Loading branch information
welandaz committed Oct 24, 2024
1 parent 3a2ace8 commit 1ab3973
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class AsciidoctorJSetup implements Serializable {
runConfiguration.with {
final String srcRelative = getRelativePath(file.parentFile, sourceDir)

options.each { key, value -> optionsBuilder.option(key, value.toString()) }
options.each { key, value -> optionsBuilder.option(key, value) }
optionsBuilder.backend(backendName)
optionsBuilder.inPlace(false)
optionsBuilder.safe(SafeMode.safeMode(safeModeLevel))
Expand All @@ -82,7 +82,7 @@ class AsciidoctorJSetup implements Serializable {
}

AttributesBuilder attributesBuilder = Attributes.builder()
attributes.each { key, value -> attributesBuilder.attribute(key, value.toString()) }
attributes.each { key, value -> attributesBuilder.attribute(key, value) }
attributesBuilder.attribute(ATTR_PROJECT_DIR, projectDir.absolutePath)
attributesBuilder.attribute(ATTR_ROOT_DIR, rootDir.absolutePath)
attributesBuilder.attribute(ATTR_REL_SRC_DIR, srcRelative.empty ? '.' : srcRelative)
Expand Down

0 comments on commit 1ab3973

Please sign in to comment.