Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_file_content(file_name):
file_content = read_data_file(file_name)
data_type = get_data_type(file_name)
if data_type == BacktestingDataFormats.REGULAR_COLLECTOR_DATA:
return DataCollectorParser.merge_arrays(file_content)
else:
raise BacktestingDataFileException(file_name)