Skip to content

Commit 2b62811

Browse files
committed
Merge pull request #99 from bem/logDiffText
Rename method 'log' to 'logDiffText'
2 parents a2cb934 + d7a57df commit 2b62811

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = require('coa').Cmd()
7070
},
7171
htmlDiffer = new HtmlDiffer(options);
7272

73-
diffLogger.log(htmlDiffer.diffHtml(html1, html2), loggerOptions);
73+
diffLogger.logDiffText(htmlDiffer.diffHtml(html1, html2), loggerOptions);
7474
});
7575
})
7676
.run(process.argv.slice(2));

lib/logger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function getDiffText(diff, options) {
5555
* @param {Object} [options]
5656
* @param {Number} [options.charsAroundDiff=40]
5757
*/
58-
function log(diff, options) {
58+
function logDiffText(diff, options) {
5959
var diffText = getDiffText(diff, options);
6060

6161
if (diffText) {
@@ -65,5 +65,5 @@ function log(diff, options) {
6565

6666
module.exports = {
6767
getDiffText: getDiffText,
68-
log: log
68+
logDiffText: logDiffText
6969
};

0 commit comments

Comments
 (0)