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