1
0
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:
Doug Kearns
2008-09-14 16:58:28 +00:00
parent 0a9b61dc73
commit 9a6334afcb

View File

@@ -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())
{