Skip to content

Commit

Permalink
Fix whitespace in getDatabaseAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock committed Nov 3, 2016
1 parent 1ae3613 commit 2fb4f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ParseServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ class ParseServer {

getDatabaseAdapter(databaseURI, collectionPrefix, databaseOptions) {
let protocol;
try{
try {
const parsedURI = url.parse(databaseURI);
protocol = parsedURI.protocol ? parsedURI.protocol.toLowerCase() : null;
}catch(e){}
} catch(e) {}
switch (protocol) {
case 'postgres:':
return new PostgresStorageAdapter({
Expand Down

0 comments on commit 2fb4f89

Please sign in to comment.