Permalink
Browse files

Minor whitespace cleanup

Signed-off-by: Alex Coles <alex@alexcolesportfolio.com>
  • Loading branch information...
1 parent e723609 commit 6b2838ada24ba4d93d44cb3a718f62b8019c637c @myabc committed Jun 29, 2010
@@ -39,4 +39,3 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
@@ -192,19 +192,19 @@ private void backupFile(File file) throws IOException {
* Code originally from GitIndex.
*/
private void checkoutEntry(GitIndex.Entry e, File file) throws IOException {
- file.delete();
- file.getParentFile().mkdirs();
+ file.delete();
+ file.getParentFile().mkdirs();
FileChannel channel = new FileOutputStream(file).getChannel();
try {
- byte[] bytes = repository.openBlob(e.getObjectId()).getBytes();
- ByteBuffer buffer = ByteBuffer.wrap(bytes);
- if (channel.write(buffer) != bytes.length)
- throw new IOException("Could not write file " + file);
+ byte[] bytes = repository.openBlob(e.getObjectId()).getBytes();
+ ByteBuffer buffer = ByteBuffer.wrap(bytes);
+ if (channel.write(buffer) != bytes.length)
+ throw new IOException("Could not write file " + file);
} finally {
- channel.close();
+ channel.close();
}
setExecutable(file, FileMode.EXECUTABLE_FILE.equals(e.getModeBits()));
- }
+ }
}
@@ -138,4 +138,4 @@ private void refTreeEntry(TreeEntry entry) throws Exception {
entry.getMode().getBits(), entry.getId().name(), entry.getFullName()));
}
-}
+}

0 comments on commit 6b2838a

Please sign in to comment.