Skip to content

Commit

Permalink
Address pattern shadow warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilquist committed May 10, 2024
1 parent e161821 commit d014f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/shared/src/main/scala-2/SqlState.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import skunk.exception.PostgresErrorException
sealed abstract class SqlState(val code: String) extends EnumEntry {

def unapply(e: Throwable): Option[PostgresErrorException] =
Some(e).collect { case e: PostgresErrorException if e.code == code => e }
Some(e).collect { case pe: PostgresErrorException if pe.code == code => pe }

}

Expand Down Expand Up @@ -1222,4 +1222,4 @@ object SqlState extends Enum[SqlState] {

override val values: IndexedSeq[SqlState] = findValues

}
}

0 comments on commit d014f43

Please sign in to comment.