Skip to content

Commit

Permalink
refactored code
Browse files Browse the repository at this point in the history
  • Loading branch information
SpoilerRules committed Apr 1, 2024
1 parent 3fc8ccb commit b86939d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ class StylesheetVisualizationManager {
}

private fun getTempStylesheets(element: Stylesheet): File {
if (newStylesheetResource.isEmpty()) {
throw IllegalArgumentException(
"No modified stylesheets found for element ${element.fileName}. Please contact your developer for assistance.",
)
require(newStylesheetResource.isNotEmpty()) {
"No modified stylesheets found for element ${element.fileName}. Please contact your developer for assistance."
}

val tempFile = File(System.getProperty("java.io.tmpdir"), "${element.fileName}.css")
Expand Down

0 comments on commit b86939d

Please sign in to comment.