Skip to content

Commit

Permalink
Use ternary operators
Browse files Browse the repository at this point in the history
  • Loading branch information
Selutario committed Oct 27, 2021
1 parent 7275730 commit c7ba26a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ class ClusterCSVResourcesParser(ClusterCSVParser):
"""

def __init__(self, artifacts_path, columns=None):
if columns is None:
columns = ['USS(KB)', 'CPU(%)', 'FD']

self.columns = columns
self.columns = ['USS(KB)', 'CPU(%)', 'FD'] if columns is None else columns
super().__init__(artifacts_path, files_to_load=['wazuh-clusterd', 'integrity_sync'])

def _calculate_stats(self, df):
Expand Down

0 comments on commit c7ba26a

Please sign in to comment.