Skip to content

Commit

Permalink
[FABN-681] ESlint fix for utils.js
Browse files Browse the repository at this point in the history
Remove single point of usage readFile. Replace it by simple
fs.readFileSync

Change-Id: I45121596cd5faed166481ac4eb9c448a5857acc6
Signed-off-by: davidliu <david-khala@hotmail.com>
  • Loading branch information
davidkhala committed Jul 27, 2018
1 parent 0170563 commit b130e3c
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 124 deletions.
11 changes: 6 additions & 5 deletions fabric-client/lib/packager/Car.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@

'use strict';

var utils = require('../utils.js');
const utils = require('../utils.js');

var logger = utils.getLogger('packager/Car.js');
const logger = utils.getLogger('packager/Car.js');
const fs = require('fs-extra');

class Car {
package (path) {
logger.debug('Packaging CAR file from %s', path);
return utils.readFile(path);
package(path) {
logger.debug(`Packaging CAR file from ${path}`);
return fs.readFileSync(path);
}
}

Expand Down
Loading

0 comments on commit b130e3c

Please sign in to comment.