From 2ed4fd0a7b77fa8bb444b225150375c98fbd0f65 Mon Sep 17 00:00:00 2001 From: Federico Bozzini Date: Tue, 1 Oct 2019 14:09:11 +0100 Subject: [PATCH] Removed unnecessary non-null assertion Signed-off-by: Federico Bozzini --- .../filesystem/src/node/nsfw-watcher/nsfw-filesystem-watcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/filesystem/src/node/nsfw-watcher/nsfw-filesystem-watcher.ts b/packages/filesystem/src/node/nsfw-watcher/nsfw-filesystem-watcher.ts index 0bc822926ff7d..6b554b6970d75 100644 --- a/packages/filesystem/src/node/nsfw-watcher/nsfw-filesystem-watcher.ts +++ b/packages/filesystem/src/node/nsfw-watcher/nsfw-filesystem-watcher.ts @@ -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!)); } } }, {