Skip to content

Commit

Permalink
Inline variable
Browse files Browse the repository at this point in the history
  • Loading branch information
duke1995 committed Aug 14, 2023
1 parent 849923f commit ce61058
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ public void format(CodeFormatters formatters) throws IOException {

index.write();

try (Repository autoCRLFRepository =
new AutoCRLFRepository(git.getRepository().getDirectory(), eolStreamType);
Git gitForAutoCRLFRepository = new Git(autoCRLFRepository);
try (Git gitForAutoCRLFRepository =
new Git(new AutoCRLFRepository(git.getRepository().getDirectory(), eolStreamType));
OutputStream diffOutput = temporaryDiffFile.newOutputStream()) {
gitForAutoCRLFRepository
.diff()
Expand Down

0 comments on commit ce61058

Please sign in to comment.