fix sql:open() (#5)

This commit is contained in:
Senghan Bright 2021-02-01 22:38:03 +01:00 committed by GitHub
parent 7afdd3c32c
commit 668a833a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ function M:bootstrap(opts)
-- create the db if it doesn't exist -- create the db if it doesn't exist
local db_root = opts.docs_root or vim.fn.stdpath('data') local db_root = opts.docs_root or vim.fn.stdpath('data')
local db_filename = db_root .. "/file_frecency.sqlite3" local db_filename = db_root .. "/file_frecency.sqlite3"
self.db = sql.open(db_filename) self.db = sql:open(db_filename)
if not self.db then if not self.db then
print("error") print("error")
return return