Skip to content

Commit

Permalink
Add sonar change
Browse files Browse the repository at this point in the history
  • Loading branch information
phanlezz committed Apr 10, 2024
1 parent df1540d commit 93f8858
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ class MetricGardenerImporter(
throw IllegalArgumentException("Input invalid file for MetricGardenerImporter, stopping execution...")
}

if (!isJsonFile) {
throw IllegalArgumentException("Direct metric-gardener execution has been temporarily disabled.")
}
require(isJsonFile) { "Direct metric-gardener execution has been temporarily disabled." }

val metricGardenerNodes: MetricGardenerNodes =
mapper.readValue(inputFile!!.reader(Charset.defaultCharset()), MetricGardenerNodes::class.java)
val metricGardenerProjectBuilder = MetricGardenerProjectBuilder(metricGardenerNodes)
Expand Down

0 comments on commit 93f8858

Please sign in to comment.