diff --git a/src/main/scala/com/sksamuel/scapegoat/inspections/collections/PredefSeqIsMutable.scala b/src/main/scala/com/sksamuel/scapegoat/inspections/collections/PredefSeqIsMutable.scala index 7db867a6..0aed38bf 100644 --- a/src/main/scala/com/sksamuel/scapegoat/inspections/collections/PredefSeqIsMutable.scala +++ b/src/main/scala/com/sksamuel/scapegoat/inspections/collections/PredefSeqIsMutable.scala @@ -18,13 +18,11 @@ class PredefSeqIsMutable import context.global._ override def inspect(tree: Tree): Unit = { - if (!isScala213) { - tree match { - case DefDef(_, _, _, _, _, _) if tree.symbol.isAccessor => - case TypeTree() if tree.tpe.erasure.toString() == "Seq[Any]" => - context.warn(tree.pos, self) - case _ => continue(tree) - } + tree match { + case DefDef(_, _, _, _, _, _) if tree.symbol.isAccessor => + case TypeTree() if tree.tpe.erasure.toString() == "Seq[Any]" => + context.warn(tree.pos, self) + case _ => continue(tree) } } }