Skip to content

Commit b17eeda

Browse files
committed
Prefer not is empty over len greater than zero
1 parent 1423f87 commit b17eeda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/category.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl Category {
7979
.cloned()
8080
.collect();
8181

82-
if to_rm.len() > 0 {
82+
if !to_rm.is_empty() {
8383
try!(conn.execute("DELETE FROM crates_categories \
8484
WHERE category_id = ANY($1) \
8585
AND crate_id = $2",

0 commit comments

Comments
 (0)