Skip to content

Commit f5b13fc

Browse files
committed
fixup
1 parent df7e85d commit f5b13fc

File tree

1 file changed

+1
-4
lines changed
  • site/src/components/GlobalSnackbar

1 file changed

+1
-4
lines changed

site/src/components/GlobalSnackbar/utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ export const isNotificationText = (msg: AdditionalMessage): msg is string => {
2727
export const isNotificationTextPrefixed = (
2828
msg: AdditionalMessage | null,
2929
): msg is NotificationTextPrefixed => {
30-
if (msg) {
31-
return typeof msg !== "string" && Object.prototype.hasOwnProperty.call(msg, "prefix")
32-
}
33-
return false
30+
return typeof msg !== "string" && Object.prototype.hasOwnProperty.call(msg, "prefix")
3431
}
3532

3633
export const isNotificationList = (msg: AdditionalMessage): msg is string[] => {

0 commit comments

Comments
 (0)