diff options
author | David Cole <40234707+DavidArthurCole@users.noreply.github.com> | 2024-10-13 09:54:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-13 15:54:05 +0200 |
commit | e0ae2e8ad4602b3e96fb6ec39716709f225d2461 (patch) | |
tree | b70ad5cec46af89dd0f05a61d39027a964c03693 /src/main/java/at/hannibal2/skyhanni/utils/repopatterns | |
parent | 113389a86c769d4d3a547fac5b7440fa8f29bc6f (diff) | |
download | skyhanni-e0ae2e8ad4602b3e96fb6ec39716709f225d2461.tar.gz skyhanni-e0ae2e8ad4602b3e96fb6ec39716709f225d2461.tar.bz2 skyhanni-e0ae2e8ad4602b3e96fb6ec39716709f225d2461.zip |
Backend: Detekt Fixes Part 7 (#2667)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/repopatterns')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt b/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt index abdf15b1c..57a5852a3 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt @@ -101,7 +101,9 @@ object RepoPatternManager { val previousOwner = exclusivity[key] if (previousOwner != owner && previousOwner != null && !previousOwner.transient) { if (!config.tolerateDuplicateUsage) - crash("Non unique access to regex at \"$key\". First obtained by ${previousOwner.ownerClass} / ${previousOwner.property}, tried to use at ${owner.ownerClass} / ${owner.property}") + crash("Non unique access to regex at \"$key\". " + + "First obtained by ${previousOwner.ownerClass} / ${previousOwner.property}, " + + "tried to use at ${owner.ownerClass} / ${owner.property}") } else { exclusivity[key] = owner } @@ -119,7 +121,9 @@ object RepoPatternManager { } val previousParentOwner = previousParentOwnerMutable - if (previousParentOwner != null && previousParentOwner != parentKeyHolder && !(previousParentOwner.shares && previousParentOwner.parent == parentKeyHolder)) { + if (previousParentOwner != null && previousParentOwner != parentKeyHolder && + !(previousParentOwner.shares && previousParentOwner.parent == parentKeyHolder) + ) { if (!config.tolerateDuplicateUsage) crash( "Non unique access to array regex at \"$parent\"." + " First obtained by ${previousParentOwner.ownerClass} / ${previousParentOwner.property}," + |