Skip to content

Files

Latest commit

 

History

History
18 lines (12 loc) · 334 Bytes

expression-not-assigned.md

File metadata and controls

18 lines (12 loc) · 334 Bytes

Pattern: Expression not assigned

Issue: -

Description

Used when an expression that is not a function call is assigned to nothing. Probably something else was intended.

Example of incorrect code:

result == do_stuff() # [expression-not-assigned]

Example of correct code:

result = do_stuff()