diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/service.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/service.lua b/script/service.lua index cf394b9d..88e8448c 100644 --- a/script/service.lua +++ b/script/service.lua @@ -273,12 +273,12 @@ function mt:readText(uri, path, buf, compiled) log.debug('Read failed due to not lua:', uri) return end - if not self._files:isOpen() and self:isIgnored(uri) then + if not self._files:isOpen(uri) and self:isIgnored(uri) then log.debug('Read failed due to ignored:', uri) return end local text = buf or io.load(path) - if not self._files:isOpen() and not self:checkReadFile(uri, path, text) then + if not self._files:isOpen(uri) and not self:checkReadFile(uri, path, text) then log.debug('Read failed due to check failed:', uri) return end |