From 84051c589a1d94e3e84fe920c4f5a102476ca017 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 3 May 2024 08:26:47 +0200 Subject: run make format --- init.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 001bf35..c9ac004 100644 --- a/init.lua +++ b/init.lua @@ -108,7 +108,9 @@ local function delete_lock_file(lfile_path) end vis.events.subscribe(vis.events.FILE_OPEN, function(file) - if not file.path then return end + if not file.path then + return + end local lfile_path = lock_file_path(file.path) if not create_lock_file(lfile_path) and not confirm(lfile_path) then os.exit(1) @@ -116,7 +118,9 @@ vis.events.subscribe(vis.events.FILE_OPEN, function(file) end) vis.events.subscribe(vis.events.FILE_CLOSE, function(file) - if not file.path then return end + if not file.path then + return + end local lfile_path = lock_file_path(file.path) if created_locks[lfile_path] then delete_lock_file(lfile_path) -- cgit v1.2.3