Skip to content

Commit

Permalink
fix whitespace, import
Browse files Browse the repository at this point in the history
  • Loading branch information
dlindhol committed Feb 5, 2024
1 parent e48b745 commit 5208529
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/latis/service/hapi/AboutResponse.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ object AboutResponse {
ar.contactId,
ar.citation
) }.mapJson(_.dropNullValues)
}
}
2 changes: 1 addition & 1 deletion src/main/scala/latis/service/hapi/Bin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ object Bin {
!v.isNull
}
}
}
}
2 changes: 1 addition & 1 deletion src/main/scala/latis/service/hapi/DataService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import cats.effect.Concurrent
import cats.implicits.*
import fs2.Stream
import io.circe.syntax.*
import org.http4s.{Status => _, _}
import org.http4s.{Status as _, *}
import org.http4s.circe.*
import org.http4s.dsl.Http4sDsl
import org.http4s.headers.`Content-Type`
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/latis/service/hapi/DataType.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ case object HInteger extends DataType
case object HIsoTime extends DataType

object DataType {

/** JSON encoder */
given encoder: Encoder[DataType] =
Encoder.instance {
Expand All @@ -28,4 +28,4 @@ object DataType {
case HInteger => Json.fromString("integer")
case HIsoTime => Json.fromString("isotime")
}
}
}
1 change: 0 additions & 1 deletion src/main/scala/latis/service/hapi/QueryDecoders.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import org.http4s.dsl.io.*
/** Shared query decoders and matchers. */
object QueryDecoders {


object DatasetMatcher extends OptionalQueryParamDecoderMatcher[String]("dataset")
object StartTimeMatcher extends OptionalValidatingQueryParamDecoderMatcher[LocalDateTime]("start")
object StopTimeMatcher extends OptionalValidatingQueryParamDecoderMatcher[LocalDateTime]("stop")
Expand Down

0 comments on commit 5208529

Please sign in to comment.