Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Commit

Permalink
Remove outdated TODO, add field initializer.
Browse files Browse the repository at this point in the history
  • Loading branch information
rictic committed Nov 16, 2017
1 parent 2a64192 commit 90662a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/model/warning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class Warning {
* Each action is separate and they may be mutually exclusive. In the case
* of edit actions they often are.
*/
readonly actions: ReadonlyArray<Action>|undefined;
readonly actions: ReadonlyArray<Action>|undefined = undefined;
private readonly _parsedDocument: ParsedDocument;

constructor(init: WarningInit) {
Expand Down Expand Up @@ -323,7 +323,6 @@ function canApply(
replacements.set(replacement.range.file, [replacement]);
} else {
const fileReplacements = replacements.get(replacement.range.file)!;
// TODO(rictic): insert in sorted order
fileReplacements.push(replacement);
}
}
Expand Down

0 comments on commit 90662a3

Please sign in to comment.