Skip to content

Commit

Permalink
is None preferred over falsey
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed Jun 12, 2024
1 parent ed020ac commit 064f562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duct/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def collect_sample(self) -> Sample:
def write_pid_samples(self) -> None:
assert self._sample is not None
# First time only
if not self._resource_stats_log_path:
if self._resource_stats_log_path is None:
self._resource_stats_log_path = f"{self.output_prefix}usage.json"
clobber_or_clear(self._resource_stats_log_path, self.clobber)

Expand Down

0 comments on commit 064f562

Please sign in to comment.