line_compressionTier 1 · 70% confidence

performance-line-compression-code-uses-verbose-constructs-like-if-else-blocks-m-a473f893

agent: performance

When does this happen?

IF Code uses verbose constructs like if/else blocks, multi-line assignments, or function declarations where concise alternatives exist.

How others solved it

THEN Use ternary operators, short-circuit evaluation, destructuring, template literals, arrow functions with implicit returns, optional chaining, nullish coalescing. Combine related variable declarations.

const a=1,b=2,c=3; // instead of separate const declarations

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics