Use simple quotes everywhere

This commit is contained in:
Kevyn Bruyere
2019-11-07 11:25:10 +01:00
parent 58de54f1cc
commit d65d19c2d2
11 changed files with 43 additions and 43 deletions

View File

@ -13,7 +13,7 @@ Without one dedicated object for error handling, greater are the chances of impo
// DAL layer, we don't handle errors here
DB.addDocument(newCustomer, (error, result) => {
if (error)
throw new Error("Great error explanation comes here", other useful parameters)
throw new Error('Great error explanation comes here', other useful parameters)
});
// API route code, we catch both sync and async errors and forward to the middleware
@ -45,7 +45,7 @@ app.use(async (err, req, res, next) => {
// DAL layer, we don't handle errors here
DB.addDocument(newCustomer, (error: Error, result: Result) => {
if (error)
throw new Error("Great error explanation comes here", other useful parameters)
throw new Error('Great error explanation comes here', other useful parameters)
});
// API route code, we catch both sync and async errors and forward to the middleware