Permalink
Browse files

Fixing services.js

  • Loading branch information...
1 parent 8fbeafc commit 75e373bc8cab5f4eff1308f1f48959ce574a1694 @MainframeEnzo MainframeEnzo committed Jan 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/services.js
View
@@ -55,11 +55,11 @@ this.poll = function (constants, utilities, logger, callback) {
splitBuffer = fd.toString().split('\n');
for (i = 0; i < splitBuffer.length; i++) {
var service = splitBuffer[i].split('=');
- if (!self.utilities.isEmpty(service[0]) && !self.utilities.isEmpty(service[1])) {
+ if (service[0] != '' && service[1] != '') {
self.logger.write(self.constants.levels.INFO, 'Checking for service ' + service[0] + ' on port: ' + service[1]);
services.push(new Service(service[0], Number(service[1])));
} else {
- if (!self.utilities.isEmpty(service[0])) {
+ if (service[0] != '') {
self.logger.write(self.constants.levels.INFO, 'Checking for service ' + service[0]);
services.push(new Service(service[0], 0));
}

0 comments on commit 75e373b

Please sign in to comment.