From 1b90318c18cbf8856147e5fced5866bb29a11a51 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 9 Feb 2018 21:59:36 +0100 Subject: [PATCH] chore: fix lint warnings (#9869) Fixes a few lint warnings that got into master. --- src/cdk/a11y/live-announcer/live-announcer.spec.ts | 2 +- src/lib/tabs/tab-body.ts | 9 +-------- src/lib/tabs/tab.ts | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/cdk/a11y/live-announcer/live-announcer.spec.ts b/src/cdk/a11y/live-announcer/live-announcer.spec.ts index bfde6c05261..0e3cd2f9765 100644 --- a/src/cdk/a11y/live-announcer/live-announcer.spec.ts +++ b/src/cdk/a11y/live-announcer/live-announcer.spec.ts @@ -73,7 +73,7 @@ describe('LiveAnnouncer', () => { it('should return a promise that resolves after the text has been announced', fakeAsync(() => { const spy = jasmine.createSpy('announce spy'); - const promise = announcer.announce('something').then(spy); + announcer.announce('something').then(spy); expect(spy).not.toHaveBeenCalled(); tick(100); diff --git a/src/lib/tabs/tab-body.ts b/src/lib/tabs/tab-body.ts index 78aec0428ce..aec8614bfec 100644 --- a/src/lib/tabs/tab-body.ts +++ b/src/lib/tabs/tab-body.ts @@ -24,14 +24,7 @@ import { forwardRef, ViewChild, } from '@angular/core'; -import { - trigger, - state, - style, - animate, - transition, - AnimationEvent, -} from '@angular/animations'; +import {AnimationEvent} from '@angular/animations'; import {TemplatePortal, CdkPortalOutlet, PortalHostDirective} from '@angular/cdk/portal'; import {Directionality, Direction} from '@angular/cdk/bidi'; import {Subscription} from 'rxjs/Subscription'; diff --git a/src/lib/tabs/tab.ts b/src/lib/tabs/tab.ts index c8d69c27871..49b09f8ef5c 100644 --- a/src/lib/tabs/tab.ts +++ b/src/lib/tabs/tab.ts @@ -51,7 +51,7 @@ export class MatTab extends _MatTabMixinBase implements OnInit, CanDisable, OnCh */ @ContentChild(MatTabContent, {read: TemplateRef}) _explicitContent: TemplateRef; - /** Template inside the MatTab view that contains an . */ + /** Template inside the MatTab view that contains an ``. */ @ViewChild(TemplateRef) _implicitContent: TemplateRef; /** The plain text label for the tab, used when there is no template label. */