Skip to content

Commit 9983ea2

Browse files
committed
fix(ocm): test
Signed-off-by: Maxence Lange <[email protected]>
1 parent 30631aa commit 9983ea2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/private/Security/Signature/SignatureManager.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,6 @@ private function updateKnownSignatory(ISignatory $signatory): void {
724724
case SignatoryType::FORGIVABLE:
725725
$this->deleteSignatory($knownSignatory->getKeyId());
726726
$this->insertSignatory($signatory);
727-
728727
return;
729728

730729
case SignatoryType::REFRESHABLE:
@@ -734,13 +733,11 @@ private function updateKnownSignatory(ISignatory $signatory): void {
734733

735734
case SignatoryType::TRUSTED:
736735
// TODO: send notice to admin
737-
throw new SignatoryConflictException();
738-
break;
736+
throw new SignatoryConflictException('conflict between ' . json_encode($signatory) . ' ' . json_encode($knownSignatory));
739737

740738
case SignatoryType::STATIC:
741739
// TODO: send warning to admin
742740
throw new SignatoryConflictException();
743-
break;
744741
}
745742
}
746743

0 commit comments

Comments
 (0)