Skip to content

Commit da4cbaa

Browse files
committed
Move return outside of else
1 parent 72695f8 commit da4cbaa

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
@@ -2234,9 +2234,8 @@ ImageData getImageData(int zoom) {
22342234
private ImageData scaleIfNecessary(ElementAtZoom<ImageData> imageDataAtZoom, int zoom) {
22352235
if (imageDataAtZoom.zoom() != zoom) {
22362236
return scaleImageData(imageDataAtZoom.element(), zoom, imageDataAtZoom.zoom());
2237-
} else {
2238-
return imageDataAtZoom.element();
22392237
}
2238+
return imageDataAtZoom.element();
22402239
}
22412240

22422241
@Override

0 commit comments

Comments
 (0)