Skip to content

Commit

Permalink
Remove uneeded if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
neild3r committed Mar 27, 2017
1 parent 5f9f864 commit 40d53a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ export abstract class Block
protected signiture:string;
protected signitureEnd:RegExp = /[\{;]/;

constructor(position:Position = null, editor:TextEditor = null) {
constructor(position:Position, editor:TextEditor) {
this.position = position;
this.editor = editor;
if (editor != null && position != null) {
this.setSigniture(this.getBlock(position, this.signitureEnd));
}
this.setSigniture(this.getBlock(position, this.signitureEnd));
}

test():boolean {
Expand Down

0 comments on commit 40d53a6

Please sign in to comment.