mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
chore: lint code
This commit is contained in:
@ -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")
|
||||
|
@ -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(),
|
||||
|
Reference in New Issue
Block a user