Skip to content

Commit

Permalink
Fixes converting lines to array (#515)
Browse files Browse the repository at this point in the history
if condition was false convertMultilineStringToList returned "" instead
of an empty list.
  • Loading branch information
danfai authored Apr 6, 2022
1 parent 1fe3643 commit 9757e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncplay/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def getListAsMultilineString(pathArray):


def convertMultilineStringToList(multilineString):
return str.split(multilineString, "\n") if multilineString else ""
return str.split(multilineString, "\n") if multilineString else []


def playlistIsValid(files):
Expand Down

0 comments on commit 9757e61

Please sign in to comment.