mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-17 02:01:04 +01:00
Use list.extend(…)
This commit is contained in:
parent
bf87f37039
commit
33128d75f2
@ -30,9 +30,10 @@ def get_options(source):
|
||||
options_file = path.join(source_dirpath, "bat_options")
|
||||
try:
|
||||
with open(options_file, "r") as f:
|
||||
options += list(map(lambda x: x.rstrip(), f.readlines()))
|
||||
options.extend(map(lambda x: x.rstrip(), f.readlines()))
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
return options
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user