Skip to content

Commit

Permalink
typecheck safety
Browse files Browse the repository at this point in the history
  • Loading branch information
Davis committed Jul 14, 2010
1 parent fa2f415 commit a4a5dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/antinode.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var server;
function load_hostspecific_handlers() {
for (var host in settings.hosts) {
var script = settings.hosts[host]['handler'];
if (script !== undefined) {
if (script !== undefined && typeof script === 'string') {
/* remove filename extension */
var require_name = script.match(/(.*)\..*/)[1];
settings.hosts[host].handler = require(require_name);
Expand Down

0 comments on commit a4a5dc3

Please sign in to comment.