Skip to content

Commit

Permalink
match on class type explicitly so it will be a compile time error not…
Browse files Browse the repository at this point in the history
… runtime.
  • Loading branch information
spew committed May 26, 2014
1 parent dd2e00e commit 16e1b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/BitcoinApplication.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class BitcoinApplication(configuration: ProgramConfiguration) {
wallet().addKey(new ECKey());
}
}
if (kit.getClass == RegTestParams.get().getClass) {
if (kit.getClass == classOf[RegTestParams]) {
kit.connectToLocalHost()
}
kit
Expand Down

0 comments on commit 16e1b78

Please sign in to comment.