ReflogReaderTest: Fix indentation
Change-Id: I981dc14065ce435034d2072cff77e7efaa2c5573 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
5a1f8af589
commit
c77e66dd1a
|
@ -270,19 +270,19 @@ public void testSpecificEntryNumber() throws Exception {
|
|||
|
||||
private void setupReflog(String logName, byte[] data)
|
||||
throws FileNotFoundException, IOException {
|
||||
File logfile = new File(db.getDirectory(), logName);
|
||||
if (!logfile.getParentFile().mkdirs()
|
||||
&& !logfile.getParentFile().isDirectory()) {
|
||||
throw new IOException(
|
||||
"oops, cannot create the directory for the test reflog file"
|
||||
+ logfile);
|
||||
}
|
||||
FileOutputStream fileOutputStream = new FileOutputStream(logfile);
|
||||
try {
|
||||
fileOutputStream.write(data);
|
||||
} finally {
|
||||
fileOutputStream.close();
|
||||
}
|
||||
}
|
||||
File logfile = new File(db.getDirectory(), logName);
|
||||
if (!logfile.getParentFile().mkdirs()
|
||||
&& !logfile.getParentFile().isDirectory()) {
|
||||
throw new IOException(
|
||||
"oops, cannot create the directory for the test reflog file"
|
||||
+ logfile);
|
||||
}
|
||||
FileOutputStream fileOutputStream = new FileOutputStream(logfile);
|
||||
try {
|
||||
fileOutputStream.write(data);
|
||||
} finally {
|
||||
fileOutputStream.close();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue