mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-07 10:05:46 +01:00
minor refactoring of io.source()
This commit is contained in:
@@ -692,11 +692,9 @@ lookup:
|
||||
// no need (actually forbidden) to add: js <<EOF ... EOF around those files
|
||||
source: function (filename, silent)
|
||||
{
|
||||
var file;
|
||||
|
||||
try
|
||||
{
|
||||
file = ioManager.getFile(filename);
|
||||
var file = ioManager.getFile(filename);
|
||||
|
||||
if (!file.exists() || !file.isReadable() || file.isDirectory())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user