Skip to content

Commit

Permalink
fix #77, config assert() has no effect
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka committed Jun 18, 2014
1 parent 88f3944 commit 73572b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Config(config) {
var users = {all:true, anonymous:true, 'undefined':true, owner:true, none:true}

var check_user_or_uplink = function(arg) {
assert(arg !== 'all' || arg !== 'owner' || arg !== 'anonymous' || arg !== 'undefined' || arg !== 'none', 'CONFIG: reserved user/uplink name: ' + arg)
assert(arg !== 'all' && arg !== 'owner' && arg !== 'anonymous' && arg !== 'undefined' && arg !== 'none', 'CONFIG: reserved user/uplink name: ' + arg)
assert(!arg.match(/\s/), 'CONFIG: invalid user name: ' + arg)
assert(users[arg] == null, 'CONFIG: duplicate user/uplink name: ' + arg)
users[arg] = true
Expand Down

0 comments on commit 73572b0

Please sign in to comment.