Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 304 Bytes

constant_table_comparison.md

File metadata and controls

22 lines (17 loc) · 304 Bytes

constant_table_comparison

What it does

Checks for direct comparisons with constant tables.

Why this is bad

This will always fail.

Example

if x == { "a", "b", "c" } then

...will never pass.

if x == {} then

...should be written as...

if next(x) == nil then