Skip to content

Commit

Permalink
fix: broken deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas committed Sep 8, 2022
1 parent de1bdb7 commit e3e74ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/app/revanced/utils/patcher/Patcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ fun Patcher.addPatchesFiltered() {
}

patch.deprecated?.let { (reason, replacement) ->
logger.warn("$prefix: deprecated: '$reason'" + if (replacement != null) ". Use '$replacement' instead." else "")
logger.warn("$prefix: deprecated: $reason")
if (replacement != null) logger.warn("Either use ${replacement.java.patchName} instead or include it manually")
return@patch
}

Expand Down

0 comments on commit e3e74ac

Please sign in to comment.