Skip to content

Commit

Permalink
Removed unnecessary mkdir()
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Sep 19, 2022
1 parent 8342b7b commit 70a3d1e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions rskj-core/src/main/java/co/rsk/RskContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,6 @@ public synchronized NodeRunner getNodeRunner() {
RskSystemProperties rskSystemProperties = getRskSystemProperties();
if (rskSystemProperties.databaseReset() || rskSystemProperties.importEnabled()) {
FileUtil.recursiveDelete(rskSystemProperties.databaseDir());

File file = new File(rskSystemProperties.databaseDir());

file.mkdir();
}

KeyValueDataSource.validateDbKind(rskSystemProperties.databaseKind(), rskSystemProperties.databaseDir(), rskSystemProperties.databaseReset() || rskSystemProperties.importEnabled());
Expand Down

0 comments on commit 70a3d1e

Please sign in to comment.