[fix] Remove isAllowedScript leftovers (#6366)

Fixes #6365
This commit is contained in:
Martín Fernández
2020-07-09 18:11:56 +02:00
committed by GitHub
parent d6b820fd5a
commit f9293a67b0
3 changed files with 3 additions and 3 deletions

View File

@@ -722,7 +722,7 @@ end
--- Companion helper function that returns the script's language,
--- based on the filme extension.
---- @string filename
---- @treturn string (lowercase) (or nil if !isAllowedScript)
---- @treturn string (lowercase) (or nil if not Device:canExecuteScript(file))
function util.getScriptType(file)
local file_ext = string.lower(util.getFileNameSuffix(file))
if file_ext == "sh" then