Skip to content

Commit d4a23b5

Browse files
committed
chore: Avoid unnecessary assignment before for-loop
1 parent 762b1b3 commit d4a23b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

manage.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ def json_to_csv(args):
3333
seen = set()
3434
if exists:
3535
with outfile.open() as f:
36-
reader = csv.DictReader(f, fieldnames=fieldnames)
37-
for row in reader:
36+
for row in csv.DictReader(f, fieldnames=fieldnames):
3837
seen.add((row["ocid"], row["code"], row["buyer_id"], row["procuring_entity_id"], row["tenderer_id"]))
3938

4039
with infile.open() as f:

0 commit comments

Comments
 (0)