Skip to content

Commit

Permalink
Removed unnecessary non-null assertion
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Bozzini <[email protected]>
  • Loading branch information
federicobozzini committed Oct 1, 2019
1 parent 8fac997 commit 2ed4fd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class NsfwFileSystemWatcherServer implements FileSystemWatcherServer {
}
if (event.action === nsfw.actions.RENAMED) {
this.pushDeleted(watcherId, this.resolvePath(event.directory, event.oldFile!));
this.pushAdded(watcherId, this.resolvePath(event.newDirectory! || event.directory, event.newFile!));
this.pushAdded(watcherId, this.resolvePath(event.newDirectory || event.directory, event.newFile!));
}
}
}, {
Expand Down

0 comments on commit 2ed4fd0

Please sign in to comment.