Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
weswigham committed Jul 25, 2016
commit 9e9b5b0e293414165cb73f5831a126c0d31079ee
4 changes: 2 additions & 2 deletions scripts/tslint/noTypeAssertionWhitespaceRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export class Rule extends Lint.Rules.AbstractRule {
public static TRAILING_FAILURE_STRING = "Excess trailing whitespace found around type assertion.";

public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
return this.applyWithWalker(new TypeAssertionWhitesapceWalker(sourceFile, this.getOptions()));
return this.applyWithWalker(new TypeAssertionWhitespaceWalker(sourceFile, this.getOptions()));
}
}

class TypeAssertionWhitesapceWalker extends Lint.RuleWalker {
class TypeAssertionWhitespaceWalker extends Lint.RuleWalker {
public visitNode(node: ts.Node) {
if (node.kind === ts.SyntaxKind.TypeAssertionExpression) {
const refined = node as ts.TypeAssertion;
Expand Down