Skip to content

Commit

Permalink
Graph.js (SVACE): add return value for _build func
Browse files Browse the repository at this point in the history
[Issue] SVACE 609505
[Problem] Warning Message:
	Refactor this function to use "return" consistently.
[Solution] add return value for _build func

Signed-off-by: Grzegorz Czajkowski <g.czajkowski@samsung.com>
  • Loading branch information
grzegorz-czajkowski authored and singa2000 committed Apr 22, 2020
1 parent 8cc4cbd commit ec434a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/js/core/widget/core/Graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@
prototype._build = function (element) {
var self = this;

if (window.tauCharts) {
self._createDivElement(
element, classes.graphContainer);
return element;
} else {
if (!window.tauCharts) {
console.warn(addLibText);
return null;
}

self._createDivElement(element, classes.graphContainer);
return element;
};

prototype._addData = function (value) {
Expand Down

0 comments on commit ec434a6

Please sign in to comment.