Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fossid-webapp): creatScan response can be polymorphic #8541

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nnobelis
Copy link
Member

Under some rare circumstances, createScan can return an error message as data payload instead of the scan id. This commit changes the function's signature to make it polymorphic.

Fixes #8462.

Under some rare circumstances, `createScan` can return an error message as
data payload instead of the scan id. This commit changes the function's
signature to make it polymorphic.

Fixes oss-review-toolkit#8462.

Signed-off-by: Nicolas Nobelis <[email protected]>
@@ -24,6 +24,8 @@

import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.collections.beEmpty
import io.kotest.matchers.collections.shouldContainExactly

Check warning

Code scanning / detekt

Unused Imports are dead code and should be removed. Warning

The import 'io.kotest.matchers.collections.shouldContainExactly' is unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant