1
0

diplomacy: More verbose require

This commit is contained in:
Megan Wachs 2017-07-28 10:05:45 -07:00
parent 6916e5cbfb
commit f61fe2be1e

View File

@ -49,8 +49,7 @@ abstract class NodeImp[D, U, EO, EI, B <: Data]
abstract class BaseNode abstract class BaseNode
{ {
// You cannot create a Node outside a LazyModule! require (!LazyModule.stack.isEmpty, "You cannot create a node outside a LazyModule!")
require (!LazyModule.stack.isEmpty)
val lazyModule = LazyModule.stack.head val lazyModule = LazyModule.stack.head
val index = lazyModule.nodes.size val index = lazyModule.nodes.size