diplomacy: More verbose require
This commit is contained in:
parent
6916e5cbfb
commit
f61fe2be1e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user