mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Fix remaining lint errors (#19166)
This commit is contained in:
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// Type definitions for swagger-node-runner 0.5
|
||||
// Project: https://www.npmjs.com/package/swagger-node-runner
|
||||
// Definitions by: Michael Mrowetz <https://github.com/micmro/>
|
||||
// Definitions by: Michael Mrowetz <https://github.com/micmro>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
|
||||
@@ -63,7 +63,10 @@ SwaggerNodeRunner.create(config, (err, runner) => {
|
||||
const pluginAttributes = hapiMiddleware.plugin.register.attributes.name + hapiMiddleware.plugin.register.attributes.version;
|
||||
|
||||
hapiapp.register(hapiMiddleware.plugin, err => {
|
||||
if (err) { return console.error("Failed to load plugin:", err); }
|
||||
if (err) {
|
||||
console.error("Failed to load plugin:", err);
|
||||
return;
|
||||
}
|
||||
// stat app etc..
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user