From ada25aefb65679f47ca3df8f2b06cdf731b77b7f Mon Sep 17 00:00:00 2001 From: jumpei-miyata Date: Tue, 16 Oct 2018 17:47:30 +0900 Subject: [PATCH] fix(cli): fix function binding --- lib/cli.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index 5c0ec0d..89d9058 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -68,7 +68,9 @@ class CommandLine { } const jflint = new JFLint(jenkinsUrl, username, password, csrfDisabled); - return jflint.lintJenkinsfile(jenkinsfile).then(this._interpretResult) + return jflint.lintJenkinsfile(jenkinsfile).then(res => { + this._interpretResult(res); + }) .catch(e => { this._process.stderr.write(`${e.message}\n`); this._process.exit(1);