Skip to content

Commit

Permalink
chore(clearly-defined): Do not handle an exception that cannot be thrown
Browse files Browse the repository at this point in the history
The `ClearlyDefinedService` uses kotlinx-serialization and not Jackson.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed May 24, 2023
1 parent e37baa5 commit b6186fe
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

package org.ossreviewtoolkit.plugins.packagecurationproviders.clearlydefined

import com.fasterxml.jackson.databind.JsonMappingException

import java.net.HttpURLConnection

import okhttp3.OkHttpClient
Expand Down Expand Up @@ -127,11 +125,6 @@ class ClearlyDefinedPackageCurationProvider(
}
}

is JsonMappingException -> {
e.showStackTrace()
logger.warn { "Deserializing the curations failed: ${e.collectMessages()}" }
}

else -> {
e.showStackTrace()
logger.warn { "Querying curations failed: ${e.collectMessages()}" }
Expand Down

0 comments on commit b6186fe

Please sign in to comment.