Skip to content

Commit 2fd301c

Browse files
committed
chore: Remove superfluous .Companion. specifiers
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 3dcb994 commit 2fd301c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clients/fossid-webapp/src/test/kotlin/FossId2023dot1Test.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class FossId2023dot1Test : StringSpec({
5353
server.start()
5454

5555
mockkObject(FossIdServiceWithVersion.Companion)
56-
coEvery { FossIdServiceWithVersion.Companion.create(any()) } answers {
56+
coEvery { FossIdServiceWithVersion.create(any()) } answers {
5757
VersionedFossIdService2021dot2(firstArg(), "2023.2.0")
5858
}
5959

plugins/package-managers/bazel/src/test/kotlin/CompositeBazelModuleRegistryServiceTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ class CompositeBazelModuleRegistryServiceTest : WordSpec({
2727
"match the server's base url and the package name" {
2828
val expr1 = "https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/main/modules/abseil-cpp/" +
2929
"20230125.1/source.json"
30-
val group1 = CompositeBazelModuleRegistryService.Companion.URL_REGEX.matchEntire(expr1)?.groups
30+
val group1 = CompositeBazelModuleRegistryService.URL_REGEX.matchEntire(expr1)?.groups
3131

3232
group1?.get("server")
3333
?.value shouldBe "https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/main/"
3434
group1?.get("package")?.value shouldBe "abseil-cpp"
3535

3636
val expr2 = "https://bcr.bazel.build/modules/rules_proto/5.3.0-21.7/source.json"
37-
val group2 = CompositeBazelModuleRegistryService.Companion.URL_REGEX.matchEntire(expr2)?.groups
37+
val group2 = CompositeBazelModuleRegistryService.URL_REGEX.matchEntire(expr2)?.groups
3838

3939
group2?.get("server")?.value shouldBe "https://bcr.bazel.build/"
4040
group2?.get("package")?.value shouldBe "rules_proto"
4141

4242
val expr3 = "https://bcr.bazel.build/modules/upb/0.0.0-20220923-a547704/source.json"
43-
val group3 = CompositeBazelModuleRegistryService.Companion.URL_REGEX.matchEntire(expr3)?.groups
43+
val group3 = CompositeBazelModuleRegistryService.URL_REGEX.matchEntire(expr3)?.groups
4444

4545
group3?.get("server")?.value shouldBe "https://bcr.bazel.build/"
4646
group3?.get("package")?.value shouldBe "upb"

0 commit comments

Comments
 (0)