Skip to content

Commit

Permalink
format change
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixZeng committed Apr 23, 2020
1 parent 32ba049 commit 3c20720
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/java/systems/crigges/jmpq3/JMpqEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -647,11 +647,11 @@ public MpqFile getMpqFileByBlock(BlockTable.Block block) throws IOException {
public List<MpqFile> getMpqFilesByBlockTable() throws IOException {
List<MpqFile> mpqFiles = new ArrayList<>();
ArrayList<Block> list = blockTable.getAllVaildBlocks();
for (Block block : list){
for (Block block : list) {
try{
MpqFile mpqFile = getMpqFileByBlock(block);
mpqFiles.add(mpqFile);
} catch (IOException ignore){}
} catch (IOException ignore) {}
}
return mpqFiles;
}
Expand Down Expand Up @@ -1037,7 +1037,7 @@ public void setKeepHeaderOffset(boolean keepHeaderOffset) {
*
* @return the block table
*/
public BlockTable getBlockTable(){
public BlockTable getBlockTable() {
return blockTable;
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/systems/crigges/jmpq3test/MpqTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public void testForGetMpqFileByBlock() throws IOException {
Assert.assertNotNull(blockTable);
for (BlockTable.Block block : blockTable.getAllVaildBlocks())
{
if (block.hasFlag(MpqFile.ENCRYPTED)){
if (block.hasFlag(MpqFile.ENCRYPTED)) {
continue;
}
Assert.assertNotNull(mpqEditor.getMpqFileByBlock(block));
Expand Down

0 comments on commit 3c20720

Please sign in to comment.