Skip to content

Commit

Permalink
Merge pull request palantir#445 from palantir/shorten
Browse files Browse the repository at this point in the history
shorten error string
  • Loading branch information
ashwinr committed Jun 21, 2015
2 parents d81369b + 768868b commit ddf914a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rules/noSwitchCaseFallThroughRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

export class Rule extends Lint.Rules.AbstractRule {
public static FAILURE_STRING_PART = "Expected a 'break' before ";
public static FAILURE_STRING_PART = "expected a 'break' before ";

public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
return this.applyWithWalker(new NoSwitchCaseFallThroughWalker(sourceFile, this.getOptions()));
Expand Down
2 changes: 1 addition & 1 deletion src/rules/noVarKeywordRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
var OPTION_LEADING_UNDERSCORE = "no-var-keyword";

export class Rule extends Lint.Rules.AbstractRule {
public static FAILURE_STRING = "use of the var-keyword is disallowed, use 'let' or 'const' instead";
public static FAILURE_STRING = "forbidden var keyword";

public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
var noVarKeywordWalker = new NoVarKeywordWalker(sourceFile, this.getOptions());
Expand Down

0 comments on commit ddf914a

Please sign in to comment.