Skip to content

Commit

Permalink
Fix whitespace, without duplicating the empty object
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel authored Oct 5, 2017
1 parent d6f8352 commit 757ba69
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/assets/javascripts/miq_application.js
Original file line number Diff line number Diff line change
Expand Up @@ -1535,13 +1535,19 @@ function rbacGroupLoadTab(id) {
}

function chartData(type, data, data2) {
var empty = {
data: {
columns: [],
},
};

if (type === undefined) {
return {data :{columns: []}};
return empty;
}

var config = _.cloneDeep(ManageIQ.charts.c3config[type]);
if (config === undefined) {
return {data :{columns: []}};
return empty;
}

if (_.isObject(data.miq)) {
Expand Down

0 comments on commit 757ba69

Please sign in to comment.