fix(filetype): don't pass empty string to detect

Problem: `*.db` files use empty string as default filetype, which is
inconsistent with the rest of the code which uses `nil` instead.
Solution: don't pass a default empty string

(cherry picked from commit 8bfde69007)
This commit is contained in:
Christian Clason
2022-10-21 13:41:31 +02:00
committed by github-actions[bot]
parent 383cddd784
commit f1bf7a5fda

View File

@@ -170,7 +170,7 @@ local extension = {
return require('vim.filetype.detect').bindzone(bufnr, 'dcl')
end,
db = function(path, bufnr)
return require('vim.filetype.detect').bindzone(bufnr, '')
return require('vim.filetype.detect').bindzone(bufnr)
end,
bicep = 'bicep',
bb = 'bitbake',