Skip to content

Commit

Permalink
simplify condition of writing stdin_firstrow
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Feb 22, 2023
1 parent 6307d27 commit d309592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csvkit/utilities/csvstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def main(self):
else:
rows = Reader(f, **self.reader_kwargs)

if file_is_stdin and self.args.no_header_row and stdin_firstrow:
if file_is_stdin and stdin_firstrow:
output.writerow(stdin_firstrow)

for row in rows:
Expand Down

0 comments on commit d309592

Please sign in to comment.