From 54b736e479f29a6e95b2fe6a865800265f0e9b31 Mon Sep 17 00:00:00 2001 From: Nomarian Date: Thu, 9 Oct 2025 10:24:35 -0400 Subject: Single return statement on get_lang() --- spellcheck.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'spellcheck.lua') diff --git a/spellcheck.lua b/spellcheck.lua index 4e1239e..ff2db5e 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -11,11 +11,8 @@ spellcheck.default_lang = string.match( spellcheck.spelling_autoenable = false spellcheck.get_lang = function() - if vis.win and vis.win.file.spelling_language then - return vis.win.file.spelling_language - else - return spellcheck.default_lang - end + return vis.win and vis.win.file.spelling_language + or spellcheck.default_lang end local supress_stdout = ' >/dev/null' -- cgit v1.2.3