Skip to content

Commit 2560643

Browse files
committed
FIXED: tslint false positive.
1 parent fc699c7 commit 2560643

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/swagger/swagger.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ export class SwaggerService {
2525
return Promise.reject(new ConfigurationErrorResult(ErrorCode.MissingEnv, 'The API_INFO_VERSION environment variable is missing!'));
2626
}
2727

28+
/* tslint:disable:no-unnecessary-type-assertion - False positive */
2829
const restApiName: string = <string> this._env.REST_API_NAME;
2930
const stageName: string = <string> this._env.STAGE_NAME;
3031
const title: string = <string> this._env.API_INFO_TITLE;
3132
const version: string = <string> this._env.API_INFO_VERSION;
33+
/* tslint:enable:no-unnecessary-type-assertion */
3234

3335
return this._repo.getRestApiId(stageName, restApiName)
3436
.then((restApiId: string | undefined) => {

0 commit comments

Comments
 (0)