Skip to content

Commit

Permalink
🐛 fix ktlint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
theapache64 committed Nov 27, 2024
1 parent f3c9dd8 commit 86646bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ private constructor(
return this
}

@Suppress("unused")
fun setMoshi(moshi: Moshi): Builder {
this.moshi = moshi
return this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.github.theapache64.retrosheet.core

import com.github.theapache64.retrosheet.RetrosheetInterceptor
import com.github.theapache64.retrosheet.annotations.Write
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import java.io.IOException
import java.net.HttpURLConnection
Expand All @@ -23,7 +22,6 @@ class GoogleFormHelper(
private val retrosheetInterceptor: RetrosheetInterceptor,
) {


private val stringMapAdapter by lazy {
val mapType = Types.newParameterizedType(Map::class.java, String::class.java, String::class.java)
retrosheetInterceptor.moshi.adapter<Map<String, String>>(mapType)
Expand All @@ -45,7 +43,6 @@ class GoogleFormHelper(

const val SOLUTION_UPDATE = "Please update retrosheet to latest version."


fun isGoogleFormSubmit(request: Request): Boolean {
val isForm = (request.tag(Invocation::class.java)?.method()?.getAnnotation(Write::class.java) != null)
val requestMethod = request.method()
Expand Down

0 comments on commit 86646bb

Please sign in to comment.