Skip to content

Commit

Permalink
Fix newline bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rukayaj committed May 17, 2024
1 parent 0cdab4e commit 8d6ade6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def download_file(url):
return response.content.decode('utf-8')

def validate_file_content(file_content):
url_list = file_content.split('\n')
url_list = file_content.strip().split('\n')
errors = []
if len(url_list) == 0:
errors.append("Empty file. There should be at least 1 line in the file.")
Expand Down

0 comments on commit 8d6ade6

Please sign in to comment.