Permalink
Browse files

check for falsy roleVer because it's null sometimes instead of undefined

  • Loading branch information...
1 parent dd6e539 commit 543cea071e708f09f795c8a9cf7afefdb931c834 @substack committed Sep 26, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.js
  2. +1 −1 package.json
View
@@ -358,7 +358,7 @@ exports.createServer = function (opts) {
}
server.query = function (roleVer) {
- if (roleVer === undefined) {
+ if (!roleVer) {
return roles;
}
else {
View
@@ -1,7 +1,7 @@
{
"name" : "seaport",
"description" : "service registry and port assignment for clusters",
- "version" : "0.8.0",
+ "version" : "0.8.1",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/seaport.git"

0 comments on commit 543cea0

Please sign in to comment.