Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pratid committed Nov 23, 2015
1 parent 5ab958a commit c8121e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/manuals/admin/README.rst
Expand Up @@ -97,7 +97,7 @@ Additional parsers
NGSI Adapter currently includes a predefined set of parsers for Nagios probes
at ``lib/parsers/nagios`` directory, each named after its corresponding probe.

This can be extended with additional parsers found at from other directories.
This can be extended with additional parsers found at additional directories.
To do so, please configure ``--parsersPath`` command line option (or set the
variable ``ADAPTER_PARSERS_PATH``) with a colon-separated list of absolute (or
relative to Adapter root) directories where parsers are located.
Expand Down
2 changes: 1 addition & 1 deletion ngsi_adapter/src/lib/parsers/common/factory.js
Expand Up @@ -57,7 +57,7 @@ function getParserByName(name) {
/* jshint -W103,-W106 */
var prototype = require(path.join(path.resolve(absoluteBaseDir, dir), util.format('%s.js', name))).parser;
if (prototype.__proto__ === null) {
prototype.__proto__ = baseParser; // make baseParser the object prototype
prototype.__proto__ = baseParser; // ensure baseParser is part of the prototype chain
}
parser = Object.create(prototype);
parsersCache[name] = parser;
Expand Down

0 comments on commit c8121e7

Please sign in to comment.