Skip to content

Commit

Permalink
cleanup nullable leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorch committed Oct 24, 2023
1 parent 3b14be1 commit b6fcb52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ interface RSAPI {
@Header("Comment") comment: String?,
@Header("Active") active: Boolean?,
@Body file: RequestBody?
): Call<InboxResponse?>
): Call<InboxResponse>

@Headers("Content-Type: application/json")
@POST("/userInbox")
Expand All @@ -77,7 +77,7 @@ interface RSAPI {
@Headers("Content-Type: application/json")
@POST("/reportProblem")
fun reportProblem(
@Header("Authorization") authorization: String?,
@Header("Authorization") authorization: String,
@Body problemReport: ProblemReport
): Call<InboxResponse>

Expand Down Expand Up @@ -107,7 +107,7 @@ interface RSAPI {
): Call<Token>

@DELETE("/myProfile")
fun deleteAccount(@Header("Authorization") authorization: String?): Call<Void>
fun deleteAccount(@Header("Authorization") authorization: String): Call<Void>

companion object {
val TAG: String = RSAPI::class.java.simpleName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class RSAPIClient(
}

fun reportProblem(problemReport: ProblemReport): Call<InboxResponse> {
return api.reportProblem(userAuthorization, problemReport)
return api.reportProblem(userAuthorization!!, problemReport)
}

private val userAuthorization: String?
Expand All @@ -230,7 +230,7 @@ class RSAPIClient(
stationTitle: String?, latitude: Double?,
longitude: Double?, comment: String?,
active: Boolean?, file: RequestBody?
): Call<InboxResponse?> {
): Call<InboxResponse> {
return api.photoUpload(
userAuthorization!!,
stationId,
Expand Down Expand Up @@ -261,7 +261,7 @@ class RSAPIClient(
}

fun deleteAccount(): Call<Void> {
return api.deleteAccount(userAuthorization)
return api.deleteAccount(userAuthorization!!)
}

fun resendEmailVerification(): Call<Void> {
Expand Down

0 comments on commit b6fcb52

Please sign in to comment.