Skip to content

Commit 84cf0dc

Browse files
Removes sbt-org-policies
1 parent b40687b commit 84cf0dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/scala/org/scalaexercises/exercises/Exercises.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,17 @@ object Exercises {
6464
}
6565

6666
def discoverLibraries(
67-
cl: ClassLoader = classOf[Exercise].getClassLoader): (List[String], List[Library]) = {
67+
cl: ClassLoader = classOf[Exercise].getClassLoader
68+
): (List[String], List[Library]) = {
6869
val classNames: List[String] = subclassesOf[Library](cl)
6970

7071
val errorsAndLibraries = classNames.map { name =>
7172
for {
7273
loadedClass <- guard(Class.forName(name, true, cl), s"$name not found")
7374
loadedObject <- guard(
7475
loadedClass.getField("MODULE$").get(null),
75-
s"$name must be defined as an object")
76+
s"$name must be defined as an object"
77+
)
7678
loadedLibrary <- guard(loadedObject.asInstanceOf[Library], s"$name must extend Library")
7779
} yield loadedLibrary
7880
}

0 commit comments

Comments
 (0)