mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 15:45: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
|
// no need (actually forbidden) to add: js <<EOF ... EOF around those files
|
||||||
source: function (filename, silent)
|
source: function (filename, silent)
|
||||||
{
|
{
|
||||||
var file;
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
file = ioManager.getFile(filename);
|
var file = ioManager.getFile(filename);
|
||||||
|
|
||||||
if (!file.exists() || !file.isReadable() || file.isDirectory())
|
if (!file.exists() || !file.isReadable() || file.isDirectory())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user