Fix whitespace in getDatabaseAdapter

This commit is contained in:
Tyler Brock
2016-11-03 10:53:37 -07:00
parent 1ae3613608
commit 2fb4f89324

View File

@@ -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({