From c698316e98b86b9efd3897bc74d0758d2e0a02e0 Mon Sep 17 00:00:00 2001 From: Sam Sciolla Date: Wed, 9 Dec 2020 12:32:28 -0500 Subject: [PATCH] Tweak return value of detectChanges --- src/assets/src/changes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/src/changes.ts b/src/assets/src/changes.ts index 0495b58e..ed555d84 100644 --- a/src/assets/src/changes.ts +++ b/src/assets/src/changes.ts @@ -21,7 +21,7 @@ const propertyMap: HumanReadableMap = { 'assignee': 'host' } -function detectChanges(versOne: T, versTwo: T, propsToWatch: (keyof T)[]): string { +function detectChanges(versOne: T, versTwo: T, propsToWatch: (keyof T)[]): string | undefined { for (const property of propsToWatch) { let valueOne = versOne[property] as T[keyof T] | string; let valueTwo = versTwo[property] as T[keyof T] | string; @@ -36,7 +36,7 @@ function detectChanges(versOne: T, versTwo: T, propsToWatch: (ke return `The ${propName} changed from "${valueOne}" to "${valueTwo}".`; } } - return ''; + return; }