Skip to content

Commit 46ad23d

Browse files
committed
Remove unnecessary return statements
1 parent 4488fcb commit 46ad23d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/components/shapes/index.js

-10
Original file line numberDiff line numberDiff line change
@@ -146,28 +146,24 @@ shapes.draw = function(gd, index, opt, value) {
146146
}
147147

148148
updateShape(gd, index, opt, value);
149-
return;
150149
};
151150

152151
function replaceAllShapes(gd, newShapes) {
153152
gd.layout.shapes = newShapes;
154153
shapes.supplyLayoutDefaults(gd.layout, gd._fullLayout);
155154
shapes.drawAll(gd);
156-
return;
157155
}
158156

159157
function deleteAllShapes(gd) {
160158
delete gd.layout.shapes;
161159
gd._fullLayout.shapes = [];
162160
shapes.drawAll(gd);
163-
return;
164161
}
165162

166163
function updateAllShapes(gd, opt, value) {
167164
for(var i = 0; i < gd._fullLayout.shapes.length; i++) {
168165
shapes.draw(gd, i, opt, value);
169166
}
170-
return;
171167
}
172168

173169
function deleteShape(gd, index) {
@@ -186,8 +182,6 @@ function deleteShape(gd, index) {
186182
.attr('data-index', String(i));
187183
shapes.draw(gd, i);
188184
}
189-
190-
return;
191185
}
192186

193187
function insertShape(gd, index, newShape) {
@@ -209,8 +203,6 @@ function insertShape(gd, index, newShape) {
209203
.attr('data-index', String(i));
210204
shapes.draw(gd, i);
211205
}
212-
213-
return;
214206
}
215207

216208
function updateShape(gd, index, opt, value) {
@@ -311,8 +303,6 @@ function updateShape(gd, index, opt, value) {
311303
path.call(Plotly.Drawing.setClipUrl,
312304
'clip' + gd._fullLayout._uid + clipAxes);
313305
}
314-
315-
return;
316306
}
317307

318308
function decodeDate(convertToPx) {

0 commit comments

Comments
 (0)