Skip to content

Commit

Permalink
Updated Noel's review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Assayire committed Jan 17, 2024
1 parent c88acf1 commit 24d1297
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 58 deletions.
52 changes: 0 additions & 52 deletions backend/resources/book.json

This file was deleted.

2 changes: 1 addition & 1 deletion backend/src/main/scala/snorri/Book.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package snorri

import io.circe.{Encoder, Decoder}
import io.circe.generic.semiauto._
import io.circe.generic.semiauto.*

// NOTE: Not yet reading series_t,sequence_i and cat
case class Book(
Expand Down
4 changes: 1 addition & 3 deletions backend/src/main/scala/snorri/Snorri.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ object Snorri {
}

private def retrieveBooks(): String =
use(booksResource()) { src =>
src.mkString
}
use(booksResource())(_.mkString)

private def booksResource(): BufferedSource = {
val stream = getClass.getResourceAsStream("/book.json")
Expand Down
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ ThisBuild / tlCiHeaderCheck := false
val commonSettings = Seq(
libraryDependencies ++=
"org.creativescala" %% "krop-core" % "0.6.0" ::
Modules.circe :::
Nil
Modules.circe
)

lazy val snorriRoot =
Expand Down

0 comments on commit 24d1297

Please sign in to comment.