Skip to main content

What it flags

A locally owned Go database/sql iterator whose loop returns before all rows are read. The rule targets a direct success return with no visible Close first.

How to review or fix

Check the query error, then defer rows.Close() so early returns also release the iterator.