Skip to content

Commit

Permalink
remove unnecessary brace
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyJvm committed Apr 15, 2014
1 parent de5d9a7 commit 72333a3
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,9 @@ private[spark] class BlockManager(
memoryStore.putValues(blockId, iterator, level, true)
case ArrayBufferValues(array) =>
memoryStore.putValues(blockId, array, level, true)
case ByteBufferValues(bytes) => {
case ByteBufferValues(bytes) =>
bytes.rewind()
memoryStore.putBytes(blockId, bytes, level)
}
}
size = res.size
res.data match {
Expand All @@ -677,10 +676,9 @@ private[spark] class BlockManager(
tachyonStore.putValues(blockId, iterator, level, false)
case ArrayBufferValues(array) =>
tachyonStore.putValues(blockId, array, level, false)
case ByteBufferValues(bytes) => {
case ByteBufferValues(bytes) =>
bytes.rewind()
tachyonStore.putBytes(blockId, bytes, level)
}
}
size = res.size
res.data match {
Expand All @@ -697,10 +695,9 @@ private[spark] class BlockManager(
diskStore.putValues(blockId, iterator, level, askForBytes)
case ArrayBufferValues(array) =>
diskStore.putValues(blockId, array, level, askForBytes)
case ByteBufferValues(bytes) => {
case ByteBufferValues(bytes) =>
bytes.rewind()
diskStore.putBytes(blockId, bytes, level)
}
}
size = res.size
res.data match {
Expand Down

0 comments on commit 72333a3

Please sign in to comment.