Skip to content

Commit

Permalink
Clarify description of no-non-null-assertion (palantir#3172)
Browse files Browse the repository at this point in the history
This commit clarifies that the `non-null-assertion` is the `!` postfix operator.
Even if the description was already correct, clearly stating what this rule is about `!` makes it easier to understand.
  • Loading branch information
demurgos authored and ajafff committed Aug 28, 2017
1 parent f22a3af commit 76af557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/noNonNullAssertionRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Rule extends Lint.Rules.AbstractRule {
/* tslint:disable:object-literal-sort-keys */
public static metadata: Lint.IRuleMetadata = {
ruleName: "no-non-null-assertion",
description: "Disallows non-null assertions.",
description: "Disallows non-null assertions using the `!` postfix operator.",
rationale: "Using non-null assertion cancels the benefits of the strict null checking mode.",
optionsDescription: "Not configurable.",
options: null,
Expand Down

0 comments on commit 76af557

Please sign in to comment.