Skip to content

Commit

Permalink
Rename variable to fix conflicting fs name
Browse files Browse the repository at this point in the history
fs is initially declared as the file system module, but in parseField() an internal unrelated variable is also named fs.

Renamed the second, internal variable from fs to _fs to fix this conflict.
  • Loading branch information
mokeefe-paa authored Dec 19, 2018
1 parent 624595e commit 0aa704f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/hl7/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ parser.prototype.parseField = function(s) {
var f = new field();

if (s.indexOf(this.delimiters.repititionCharacter) != -1) {
var fs = s.split(this.delimiters.repititionCharacter);
for (var i = 0; i < fs.length; i++) {
f.value.push(this.parseField(fs[i]));
var _fs = s.split(this.delimiters.repititionCharacter);
for (var i = 0; i < _fs.length; i++) {
f.value.push(this.parseField(_fs[i]));
}
} else {
var components = s.split(this.delimiters.componentSeperator);
Expand Down

0 comments on commit 0aa704f

Please sign in to comment.