From 890faacb4128fb2cc98e914b99ef4bd0805d3924 Mon Sep 17 00:00:00 2001 From: Jack Robertson Date: Mon, 14 Sep 2026 14:01:31 +0100 Subject: [PATCH] Align the principal case in the README `when`, `else` and `end` sat one column right of `case`, which is what `Layout/CaseIndentation` and `Layout/EndAlignment` reject. The rest of the document's Ruby already agrees with the cops. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5f98cd6..27e9b9d 100644 --- a/README.md +++ b/README.md @@ -221,10 +221,10 @@ Your handler then reads `request.principal`: ```ruby def create_pet(request:) owner = case request.principal - when Petstore::Principal::Token then "user-#{request.principal.user_id}" - when Petstore::Principal::Key then request.principal.client - else T.absurd(request.principal) - end + when Petstore::Principal::Token then "user-#{request.principal.user_id}" + when Petstore::Principal::Key then request.principal.client + else T.absurd(request.principal) + end end ```