Skip to content

Commit

Permalink
Make typechecker great again
Browse files Browse the repository at this point in the history
  • Loading branch information
docandrew committed Oct 21, 2024
1 parent 62d81fa commit dd29240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pepr/operator/secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function checkAnnotationsAndMetadata(data: a.Secret): FailReason {
export async function copySecret(request: PeprMutateRequest<a.Secret>) {
const annotations = request.Raw.metadata?.annotations;

if (checkAnnotationsAndMetadata(request.Raw) !== FailReason.OK) {
if (!annotations) {
// if there are no annotations, we can't do anything, we'll deny.
// in the validation step, the missing annotations will be noticed and an
// appropriate error message generated.
Expand Down

0 comments on commit dd29240

Please sign in to comment.