Skip to content

Commit

Permalink
fix(lint): fix noImplicitReturns TS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Nov 19, 2017
1 parent d4f8e7b commit 5c57288
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class Server extends events.EventEmitter {
public start(): q.Promise<Server> {
if (this.__instance && this.__instance.connected) {
logger.warn(`You already have a process running with PID: ${this.__instance.pid}`);
return;
return null;
}
this.__instance = pactUtil.spawnBinary(`${pact.mockServicePath} service`, this.options, this.__argMapping);
this.__instance.once("close", () => this.stop());
Expand Down
2 changes: 1 addition & 1 deletion test/integration/data-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function auth(req: express.Request, res: express.Response, next: express.
const user = basicAuth(req);
if (user && user.name === "foo" && user.pass === "bar") {
next();
return;
return null;
}

res.set("WWW-Authenticate", "Basic realm=Authorization Required");
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
Expand All @@ -12,7 +11,8 @@
"isolatedModules": false,
"moduleResolution": "node",
"suppressImplicitAnyIndexErrors": true,
"declaration": true
"declaration": true,
"noImplicitReturns": true
},
"include": [
"**/*.ts",
Expand Down

0 comments on commit 5c57288

Please sign in to comment.