QuackatronHQ / Gigarepo

Use anonymous pattern-matching functions instead of match blocks within iterators SC-R1001
Anti-pattern
Major
1 occurrence in this check
This match statement can be rewritten as an anonymous pattern-matching function
46    var substr = lang2.substring(0, lang2.length - 1)
47  }
48
49  lang1.foreach { c =>50    c match {
51      case 'a' => println('a')
52      case 'b' => println('b')