home/categories/debugging/blockscout-blockscout-agents-skills-with-to-case-refactor-skill-md
debuggingtools

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
maintainer
blockscout
更新於 4/6/2026
星標
4492
分支
3032
quick start

Installation and usage

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.

安裝
$ install --globalskills.sh
使用

安裝後,您可以透過在終端機執行以下指令來使用此技能:

skills use with-to-case-refactor