Drop test if *_func is a function

This commit is contained in:
zwim
2025-07-30 07:53:29 +02:00
parent 42e2535477
commit 201a1f035c
4 changed files with 7 additions and 7 deletions

View File

@@ -1593,7 +1593,7 @@ function ReaderLink:getButtonsForExternalLinkDialog(link_url)
local button = fn_button(self, link_url)
local show, button_title
if type(button.show_in_dialog_func) == "function" then
if button.show_in_dialog_func then
show, button_title = button.show_in_dialog_func(link_url)
else
-- If the button doesn't have the show_in_dialog_func, then assume that the button