Skip to content

Commit c41c821

Browse files
committed
Move return outside of else
1 parent 909a985 commit c41c821

File tree

1 file changed

+1
-2
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics

1 file changed

+1
-2
lines changed

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,9 +2110,8 @@ ImageData getImageData(int zoom) {
21102110
private ImageData scaleIfNecessary(ElementAtZoom<ImageData> imageDataAtZoom, int zoom) {
21112111
if (imageDataAtZoom.zoom() != zoom) {
21122112
return scaleImageData(imageDataAtZoom.element(), zoom, imageDataAtZoom.zoom());
2113-
} else {
2114-
return imageDataAtZoom.element();
21152113
}
2114+
return imageDataAtZoom.element();
21162115
}
21172116

21182117
@Override

0 commit comments

Comments
 (0)