summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>2022-11-21 12:13:33 +0530
committerGitHub <noreply@github.com>2022-11-21 12:13:33 +0530
commit2a6fe4f1595914d2c0f615b0e7250689a3ee9397 (patch)
tree1646472622312157aaf7dad8f2926e7f7a4f62eb /app/src/main/java
parentbcf82d46a0d4eda8a21560e12c94be20b99ff099 (diff)
fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-gradle-plugin to v1.22.0 (#2262)
* fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-gradle-plugin to v1.22.0 * chore: sync detekt config with 0.22.0 changes * chore: fix Detekt warning Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/app/passwordstore/util/proxy/ProxyUtils.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/src/main/java/app/passwordstore/util/proxy/ProxyUtils.kt b/app/src/main/java/app/passwordstore/util/proxy/ProxyUtils.kt
index 633c3904..9eb2d3e3 100644
--- a/app/src/main/java/app/passwordstore/util/proxy/ProxyUtils.kt
+++ b/app/src/main/java/app/passwordstore/util/proxy/ProxyUtils.kt
@@ -36,9 +36,7 @@ class ProxyUtils @Inject constructor(private val gitSettings: GitSettings) {
}
override fun connectFailed(uri: URI?, sa: SocketAddress?, ioe: IOException?) {
- if (uri == null || sa == null || ioe == null) {
- throw IllegalArgumentException("Arguments can't be null.")
- }
+ require(uri == null || sa == null || ioe == null) { "Arguments can't be null." }
}
}
)