Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
miversen33 committed Aug 30, 2024
1 parent bc414a4 commit 5039c23
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions lua/persisted/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,8 @@ function M.allowed_dir(opts)
opts = opts or {}
local dir = opts.dir or vim.fn.getcwd()

return
(
next(config.allowed_dirs)
and utils.dirs_match(dir, config.allowed_dirs)
or true
)
and not
(
next(config.ignored_dirs)
and utils.dirs_match(dir, config.ignored_dirs)
or false
)
return (next(config.allowed_dirs) and utils.dirs_match(dir, config.allowed_dirs) or true)
and not (next(config.ignored_dirs) and utils.dirs_match(dir, config.ignored_dirs) or false)
end

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

0 comments on commit 5039c23

Please sign in to comment.