chore: lint code

This commit is contained in:
inotia00
2024-06-13 00:20:35 +09:00
parent 4adce1465c
commit a4c50493f7
14 changed files with 103 additions and 44 deletions

View File

@ -239,7 +239,10 @@ fun Method.indexOfFirstInstruction(startIndex: Int = 0, predicate: Instruction.(
* @throws PatchException
* @see indexOfFirstInstruction
*/
fun Method.indexOfFirstInstructionOrThrow(startIndex: Int = 0, predicate: Instruction.() -> Boolean): Int {
fun Method.indexOfFirstInstructionOrThrow(
startIndex: Int = 0,
predicate: Instruction.() -> Boolean
): Int {
val index = indexOfFirstInstruction(startIndex, predicate)
if (index < 0) {
throw PatchException("Could not find instruction index")

View File

@ -106,7 +106,10 @@ fun ResourceContext.copyResources(
resourceGroup.resources.forEach { resource ->
val resourceFile = "${resourceGroup.resourceDirectoryName}/$resource"
inputStreamFromBundledResource(sourceResourceDirectory, resourceFile)?.let { inputStream ->
inputStreamFromBundledResource(
sourceResourceDirectory,
resourceFile
)?.let { inputStream ->
Files.copy(
inputStream,
targetResourceDirectory.resolve(resourceFile).toPath(),