Bukkit/CraftBukkit — comment on commit 6381da2d8a3a7896faafc778893749b43da199be
File: src/main/java/org/bukkit/craftbukkit/inventory/RecipeIterator.java line 25
By tips48:

redundant else, you can just make it return smelting.hasNext()