Skip to content

Commit

Permalink
Merge pull request #2112 from darranl/ELY-2379
Browse files Browse the repository at this point in the history
ELY-2379 Rename a local variable in FileAuditEndpoint class [local_variable_renamed]
  • Loading branch information
fjuma committed Mar 14, 2024
2 parents d530677 + 0f955d7 commit 2286212
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -70,22 +70,22 @@ public class FileAuditEndpoint implements AuditEndpoint {
}

void setFile(final File file) throws IOException {
boolean ok = false;
boolean isFileSet = false;
final FileOutputStream fos = new FileOutputStream(file, true);
try {
final Writer writer = new OutputStreamWriter(new BufferedOutputStream(fos), this.charset);
try {
this.fileDescriptor = fos.getFD();
this.writer = writer;
this.file = file;
ok = true;
isFileSet = true;
} finally {
if (! ok) {
if (! isFileSet) {
safeClose(writer);
}
}
} finally {
if (! ok) {
if (! isFileSet) {
safeClose(fos);
}
}
Expand Down

0 comments on commit 2286212

Please sign in to comment.