Scala

Scala

Made by DeepSource

An entity that was already imported was re-imported SC-R1071

Anti-pattern
Major

The import keyword allows you to bring entities into scope and use them. There is no reason to import an entity twice. This is likely a mistake and the second import statement can be removed.

Bad Practice

import scala.util.Try
import scala.util.control.Breaks

import scala.util.Try // Redundant

Recommended

import scala.util.Try
import scala.util.control.Breaks