remove scoped local

phoen
Daniel Barlow 2022-03-20 14:25:49 +00:00
parent b03afc5c07
commit ab32974635
1 changed files with 2 additions and 4 deletions

View File

@ -170,10 +170,8 @@
(fn xdg-data-home []
"Provides XDG_DATA_HOME or its default fallback value"
(local data-home (os.getenv "XDG_DATA_HOME"))
(if data-home
data-home
(path.concat (current-user-home) ".local/share/")))
(or (os.getenv "XDG_DATA_HOME")
(path.concat (current-user-home) ".local/share/")))
(fn xdg-data-dirs []
"Provides all data-dirs as a List. Most important first."