Skip to content

Commit

Permalink
Remove unused code (#80)
Browse files Browse the repository at this point in the history
* fix code style issue

* update version

Co-authored-by: lordfriend <lordfriend@outlook.com>
  • Loading branch information
EverettSummer and lordfriend authored Jul 4, 2020
1 parent 7900f46 commit 23dc039
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "indexer",
"version": "0.4.0",
"version": "0.4.1",
"scripts": {
"clean:dist": "rimraf dist/*",
"build": "npm run clean:dist && tsc && cp package.json dist",
Expand Down
7 changes: 0 additions & 7 deletions src/service/database-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ export class DatabaseService {
private _db: Db;
private _client: MongoClient;

public get isStarted(): boolean {
return this._client && this._client.isConnected();
}

public get db(): Db {
return this._db;
}
Expand All @@ -40,9 +36,6 @@ export class DatabaseService {
}

public async onStart(): Promise<void> {
if (this.isStarted) {
return;
}
const url = `mongodb://${this._config.dbUser}:${this._config.dbPass}@${
this._config.dbHost
}:${this._config.dbPort}?authSource=${this._config.authSource}`;
Expand Down

0 comments on commit 23dc039

Please sign in to comment.