Browse files

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

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

0 comments on commit 129c4de

Please sign in to comment.