Skip to content

Commit

Permalink
remove unnecesary checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Deblintrake09 committed Feb 21, 2024
1 parent a1d0448 commit b48cd5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ def _write_csv(self, data, target, csv_file):
csv_file (string): path to the CSV file.
"""
if target == "analysis":
csv_header = headers.analysisd_header if self.use_state_file == True else headers.analysisd_events_header
csv_header = headers.analysisd_header if self.use_state_file else headers.analysisd_events_header
elif target == "logcollector":
csv_header = headers.logcollector_header
elif target == "remote":
csv_header = headers.remoted_header if self.use_state_file == True else headers.remoted_api_header
csv_header = headers.remoted_header if self.use_state_file else headers.remoted_api_header
elif target == "wazuhdb":
csv_header = headers.wazuhdb_header
else:
Expand Down

0 comments on commit b48cd5b

Please sign in to comment.