Skip to content

Commit eb2967f

Browse files
committed
remove an unreachable code branch
1 parent cc8db75 commit eb2967f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Context/ExecutionContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function setConstraint(Constraint $constraint): void
142142
public function addViolation(string $message, array $parameters = []): void
143143
{
144144
$this->violations->add(new ConstraintViolation(
145-
false === $this->translationDomain ? strtr($message, $parameters) : $this->translator->trans($message, $parameters, $this->translationDomain),
145+
$this->translator->trans($message, $parameters, $this->translationDomain),
146146
$message,
147147
$parameters,
148148
$this->root,

0 commit comments

Comments
 (0)