Skip to content

Commit

Permalink
Remove useless object
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjsix committed Jan 25, 2019
1 parent 0db41b1 commit 1ca1936
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/main/java/org/restheart/db/IndexDAO.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* RESTHeart - the Web API for MongoDB
* Copyright (C) SoftInstigate Srl
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -98,11 +98,6 @@ void createIndex(
.getCollection(collection)
.createIndex(keys);
} else {
// need to find a way to get IndexOptions from json
IndexOptions io = new IndexOptions();

io.background(true);

client
.getDatabase(dbName)
.getCollection(collection)
Expand Down

0 comments on commit 1ca1936

Please sign in to comment.