Skip to content

Commit 5f77801

Browse files
committed
Remove null usage
1 parent 33852c2 commit 5f77801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/codacy/client/bitbucket/util/Implicits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ object Implicits {
1818

1919
implicit class URIQueryParam(uri: URI) {
2020
def addQuery(q: String): URI = {
21-
val newQuery = if (uri.getQuery == null) {
21+
val newQuery = if (Option.apply(uri.getQuery).isEmpty) {
2222
q
2323
} else {
2424
uri.getQuery + "&" + q

0 commit comments

Comments
 (0)