bin/upgrade/controllers/abstract-controller.js
Function transform
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AbstractController.prototype.transform = function (callback) {
var that = this;
async.waterfall([function (newCallback) {
console.log('Starting executing transformer ' + JSON.stringify(that.nextTransformer.version, null, 4));
newCallback(null, that.appConfig);
Function refresh
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AbstractController.prototype.refresh = function (callback) {
this.nextTransformer = null;
this.getModelVersion(this.appConfig, function (err, modelVersion) {
if (err) {
console.log('Cannot retrieve the model version', err);