itemprices: If statement must use braces

This commit is contained in:
sdburns1998
2019-07-07 15:03:17 +02:00
parent b4d6f8f145
commit 5e3fbeed38

View File

@@ -97,7 +97,10 @@ class ItemPricesOverlay extends Overlay
switch (action)
{
case ITEM_USE_ON_WIDGET:
if (!menuEntry.getTarget().contains("High Level Alchemy") || !plugin.isShowAlchProfit()) return null;
if (!menuEntry.getTarget().contains("High Level Alchemy") || !plugin.isShowAlchProfit())
{
return null;
}
case WIDGET_DEFAULT:
case ITEM_USE:
case ITEM_FIRST_OPTION: