Skip to content

Commit 1bf2c10

Browse files
committed
Merge pull request #35 from cball/rename-local-log-variable
Dont use log as a local variable.
2 parents 90ca7d3 + eebad7c commit 1bf2c10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/data-generators/version-commit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = CoreObject.extend({
2222

2323
var info = gitRepoInfo(path);
2424
var sha = (info.sha || '').slice(0, 8);
25-
var log = this._plugin.log;
25+
var plugin = this._plugin;
2626

2727
return readFile(versionFile)
2828
.then(function(contents) {
@@ -36,7 +36,7 @@ module.exports = CoreObject.extend({
3636
if (sha) {
3737
versionString = versionString + '+' + sha;
3838
} else {
39-
log('Missing git commit sha, using package version as revisionKey', { color: 'yellow', verbose: true });
39+
plugin.log('Missing git commit sha, using package version as revisionKey', { color: 'yellow', verbose: true });
4040
}
4141

4242
return {

0 commit comments

Comments
 (0)