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 CompilationUnitFactory.java
  • Loading branch information
zielint0 committed Jul 24, 2018
commit e02a981ab939761a61f15bcdaf78c242c7b55d2b
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public Map<String, CompilationUnit> getMap() {
* Creates a compilation unit with no associated files.
*/
public CompilationUnit create() {
CompilationUnit cu = factory.Core().createCompilationUnit();
return cu;
return factory.Core().createCompilationUnit();
}

public CompilationUnit getOrCreate(CtPackage ctPackage) {
Expand Down