Skip to content

Commit 5039c23

Browse files
committed
Fixed formatting
1 parent bc414a4 commit 5039c23

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

lua/persisted/init.lua

+2-12
Original file line numberDiff line numberDiff line change
@@ -193,18 +193,8 @@ function M.allowed_dir(opts)
193193
opts = opts or {}
194194
local dir = opts.dir or vim.fn.getcwd()
195195

196-
return
197-
(
198-
next(config.allowed_dirs)
199-
and utils.dirs_match(dir, config.allowed_dirs)
200-
or true
201-
)
202-
and not
203-
(
204-
next(config.ignored_dirs)
205-
and utils.dirs_match(dir, config.ignored_dirs)
206-
or false
207-
)
196+
return (next(config.allowed_dirs) and utils.dirs_match(dir, config.allowed_dirs) or true)
197+
and not (next(config.ignored_dirs) and utils.dirs_match(dir, config.ignored_dirs) or false)
208198
end
209199

210200
---Get an ordered list of sessions, sorted by modified time

0 commit comments

Comments
 (0)