Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
datumbox committed Apr 9, 2015
1 parent 9392a33 commit f0545eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -41,12 +41,12 @@ public class InMemoryConnector implements DatabaseConnector {

public InMemoryConnector(String database, InMemoryConfiguration dbConf) {
this.dbConf = dbConf;
String rootDbFolder = this.dbConf.getOutputFolder();
if(rootDbFolder.isEmpty()) {
String outputFolder = this.dbConf.getOutputFolder();
if(outputFolder.isEmpty()) {
filepath= FileSystems.getDefault().getPath(database); //write them to the default accessible path
}
else {
filepath= Paths.get(rootDbFolder + File.separator + database);
filepath= Paths.get(outputFolder + File.separator + database);
}
}

Expand Down
Expand Up @@ -108,14 +108,14 @@ private void validateName(String name, boolean isTemporary) {

private Path getDefaultPath() {
//get the default filepath of the permanet db file
String rootDbFolder = this.dbConf.getOutputFolder();
String outputFolder = this.dbConf.getOutputFolder();

Path filepath = null;
if(rootDbFolder.isEmpty()) {
if(outputFolder.isEmpty()) {
filepath= FileSystems.getDefault().getPath(database); //write them to the default accessible path
}
else {
filepath= Paths.get(rootDbFolder + File.separator + database);
filepath= Paths.get(outputFolder + File.separator + database);
}

return filepath;
Expand Down

0 comments on commit f0545eb

Please sign in to comment.