Skip to content

Commit

Permalink
Avoid companion being instantiated if it doesn't expose anything
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Oct 7, 2024
1 parent 5c27afd commit ba3df97
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ class PostifxedFileNameUnitTest {
assertEquals(newName, inputFileName)
}

companion object {
private companion object {
// Used for tests that require to check existing filenames among multiple edge case already existing filenames
private val alreadyUsedFileNames = setOf("test.txt", "test(1).txt", "test(2).txt", "hello.txt")
val alreadyUsedFileNames = setOf("test.txt", "test(1).txt", "test(2).txt", "hello.txt")
}
}

0 comments on commit ba3df97

Please sign in to comment.