Skip to content

Commit

Permalink
scalafmt and scalafix
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 committed May 15, 2024
1 parent 354a3cf commit 11d09d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 1 addition & 4 deletions sbt-plugin/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ inThisBuild(
},
// Scalafix settings
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalafixDependencies ++= List(
"com.github.liancheng" %% "organize-imports" % "0.6.0"
)
semanticdbVersion := scalafixSemanticdb.revision
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ object SubmitDependencyGraph {
Parsers.any.*.map { raw =>
val rawString = raw.mkString
if (rawString.isEmpty) DependencySnapshotInput(None, Vector.empty, Vector.empty)
else JsonParser
.parseFromString(rawString)
.flatMap(Converter.fromJson[DependencySnapshotInput])
.get
else
JsonParser
.parseFromString(rawString)
.flatMap(Converter.fromJson[DependencySnapshotInput])
.get
}.failOnException

private def generate(state: State, input: DependencySnapshotInput): State = {
Expand Down

0 comments on commit 11d09d6

Please sign in to comment.