diff options
| author | chick | 2016-09-22 10:05:33 -0700 |
|---|---|---|
| committer | jackkoenig | 2016-09-23 13:38:50 -0700 |
| commit | 2e009694159ccae82f2c01513bbdf7e7d9a370ef (patch) | |
| tree | 7de71975f3bee6bee8f9200267a735773027985e /src/main/scala/firrtl/passes/Inline.scala | |
| parent | f38d60089a1961507ec317ac0faffa3affa93eb9 (diff) | |
use .isEmpty, .nonEmpty, isDefined
Diffstat (limited to 'src/main/scala/firrtl/passes/Inline.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/Inline.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/passes/Inline.scala b/src/main/scala/firrtl/passes/Inline.scala index 12dfb497..23d8caf1 100644 --- a/src/main/scala/firrtl/passes/Inline.scala +++ b/src/main/scala/firrtl/passes/Inline.scala @@ -72,11 +72,11 @@ class InlineInstances (transID: TransID) extends Transform { } moduleNames.foreach{mn => checkExists(mn.name)} - if (!errors.isEmpty) throw new PassExceptions(errors) + if (errors.nonEmpty) throw new PassExceptions(errors) moduleNames.foreach{mn => checkExternal(mn.name)} - if (!errors.isEmpty) throw new PassExceptions(errors) + if (errors.nonEmpty) throw new PassExceptions(errors) instanceNames.foreach{cn => checkInstance(cn)} - if (!errors.isEmpty) throw new PassExceptions(errors) + if (errors.nonEmpty) throw new PassExceptions(errors) } def run(c: Circuit, modsToInline: Set[ModuleName], instsToInline: Set[ComponentName]): TransformResult = { |
