With To Case Refactor

Replace `with` expressions that contain only a single `<-` clause and an `else` branch with a `case` expression. This addresses the Credo warning "with contains only one <- clause and an else branch, consider using case instead" and produces cleaner, more idiomatic Elixir code.

blockscout 77e42fb 3.6 KB Updated

File contents

blockscout/blockscout/tree/main/.agents/skills/with-to-case-refactor commit 77e42fb1c5

Frequently asked questions

npx skillmds@latest add blockscout/with-to-case-refactor