Skip to content

Commit 089acb4

Browse files
committed
Fix calling static method readContentFromFile
1 parent 2595a7b commit 089acb4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/optionsParser.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'use strict';
1717
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1818
const yargs = require('yargs');
19-
const utils = require('./utils.js').Utils;
19+
const Utils = require('./utils.js').Utils;
2020

2121
class LoggingOpt {
2222
static logLib() {
@@ -545,8 +545,7 @@ class SenderOptions extends SenderReceiverOptions {
545545
this.anonymous = args['anonymous'];
546546

547547
if(args['msg-content-from-file']) {
548-
const ReadContentFromFile = utils.ReadContentFromFile;
549-
this.msgContentFromFile = ReadContentFromFile(args['msg-content-from-file']);
548+
this.msgContentFromFile = Utils.readContentFromFile(args['msg-content-from-file']);
550549
}
551550

552551
this.contentType = args['content-type'];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cli-rhea",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "Client interface built on amqp/rhea lib",
55
"scripts": {
66
"test": "mocha test/*Test.js",

0 commit comments

Comments
 (0)