Skip to content

Commit

Permalink
Fixed codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RawToast committed Mar 28, 2018
1 parent a28c789 commit bda95f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions dokusho-server/src/main/scala/dokusho/Http4sRouter.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package dokusho

import cats.effect.{IO, Sync}
import io.circe.{Decoder, Encoder, JsonObject, ObjectEncoder}
import io.circe.generic.AutoDerivation
import io.circe._
import org.http4s.EntityDecoder
import org.http4s.circe.CirceInstances
import org.http4s.dsl.Http4sDsl

Expand All @@ -11,9 +12,6 @@ import org.http4s.dsl.Http4sDsl
*/
trait Http4sRouter extends AutoDerivation with CirceInstances with Http4sDsl[IO] {

import io.circe.{Json, Printer}
import org.http4s.EntityDecoder

override val defaultPrinter: Printer =
Printer.noSpaces

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ReadingHistoryServiceSpec extends FreeSpec {
"should return the user" in {
val result = readingHistoryService.getReadingHistory("userId").unsafeRunSync()
assert(result.nonEmpty)
assert(result.get.userId == "userId")
assert(result.map(_.userId).contains("userId"))
}
}
"when the user does not exist" - {
Expand Down

0 comments on commit bda95f2

Please sign in to comment.