Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: fix code inspection redundant local variable #2275

Merged
merged 10 commits into from
Jul 25, 2018
Prev Previous commit
Next Next commit
refactor: inline variable in BlockTemplate.java
  • Loading branch information
zielint0 committed Jul 24, 2018
commit a86c17191c69e531c3acfd18e119855d834385d9
3 changes: 1 addition & 2 deletions src/main/java/spoon/template/BlockTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public abstract class BlockTemplate extends AbstractTemplate<CtBlock<?>> {
* Returns the block.
*/
public static CtBlock<?> getBlock(CtClass<? extends BlockTemplate> p) {
CtBlock<?> b = p.getMethod("block").getBody();
return b;
return p.getMethod("block").getBody();
}

/**
Expand Down