Skip to content

Commit 728a96c

Browse files
committed
fix - misuse of ternary
1 parent 6223759 commit 728a96c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/flutter-tools/lsp/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ function M.get_project_root_dir()
169169
local conf = require("flutter-tools.config")
170170
local current_buffer_path = path.current_buffer_path()
171171
local root_path = lsp_utils.is_valid_path(current_buffer_path)
172-
and path.find_root(conf.root_patterns, current_buffer_path)
172+
and path.find_root(conf.root_patterns, current_buffer_path)
173+
or nil
173174

174175
if root_path ~= nil then return root_path end
175176

0 commit comments

Comments
 (0)