Skip to content

Commit

Permalink
chore: fix tslint violations
Browse files Browse the repository at this point in the history
The rule "no-unused-variable" is messing up with TypeScript compiler
state and as a result, other rules don't detect certain violations.

In this commit, I am fixing few violations I discovered when I have
temporarily disabled no-unused-variable rule.
  • Loading branch information
bajtos authored and raymondfeng committed Dec 13, 2018
1 parent 84c056e commit f09d866
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('hasOne relation', () => {
const address = await controller.createCustomerAddress(existingCustomerId, {
street: '123 test avenue',
});
expect(
await expect(
controller.createCustomerAddress(existingCustomerId, {
street: '456 test street',
}),
Expand Down
3 changes: 2 additions & 1 deletion packages/rest/src/rest.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ export class RestServer extends Context implements Server, HttpServerLike {

if (config.disabled) {
debug('Redirect to swagger-ui was disabled by configuration.');
return next();
next();
return;
}

debug('Redirecting to swagger-ui from %j.', request.originalUrl);
Expand Down

0 comments on commit f09d866

Please sign in to comment.