From 581e551526f91cf0b6311637709d8fb99bb24c74 Mon Sep 17 00:00:00 2001 From: ducky Date: Tue, 20 Oct 2015 16:35:43 -0700 Subject: Make if / else braces style conformant to Scalastyle checker --- src/main/scala/Chisel/IR.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/scala/Chisel/IR.scala') diff --git a/src/main/scala/Chisel/IR.scala b/src/main/scala/Chisel/IR.scala index 2c6b0a4c..78c08c7e 100644 --- a/src/main/scala/Chisel/IR.scala +++ b/src/main/scala/Chisel/IR.scala @@ -55,8 +55,9 @@ abstract class LitArg(val num: BigInt, widthArg: Width) extends Arg { private[Chisel] def width: Width = if (forcedWidth) widthArg else Width(minWidth) protected def minWidth: Int - if (forcedWidth) + if (forcedWidth) { require(widthArg.get >= minWidth) + } } case class ILit(n: BigInt) extends Arg { @@ -85,8 +86,7 @@ case class ModuleIO(mod: Module, name: String) extends Arg { } case class Slot(imm: Node, name: String) extends Arg { override def fullName(ctx: Component) = - if (imm.fullName(ctx).isEmpty) name - else s"${imm.fullName(ctx)}.${name}" + if (imm.fullName(ctx).isEmpty) name else s"${imm.fullName(ctx)}.${name}" } case class Index(imm: Arg, value: Int) extends Arg { def name = s"[$value]" -- cgit v1.2.3