From 65008042311697596ba679c43db7d5be7e22b660 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Tue, 5 Apr 2022 11:07:50 -0500 Subject: [PATCH] Fix minor errors in link preview comments --- ts/linkPreviews/linkPreviewFetch.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ts/linkPreviews/linkPreviewFetch.ts b/ts/linkPreviews/linkPreviewFetch.ts index 574af68c28..2c07ec2558 100644 --- a/ts/linkPreviews/linkPreviewFetch.ts +++ b/ts/linkPreviews/linkPreviewFetch.ts @@ -138,7 +138,7 @@ function maybeParseUrl(href: string, base: string): null | URL { /** * Parses a Content-Type header value. Refer to [RFC 2045][0] for details (though this is - * a simplified version for link previews. + * a simplified version for link previews). * [0]: https://tools.ietf.org/html/rfc2045 */ const parseContentType = (headerValue: string | null): ParsedContentType => { @@ -416,8 +416,8 @@ const parseMetadata = ( }; /** - * This attempts to fetch link preview metadata, returning `null` if it cannot be found - * for any reason. + * This attempts to fetch link preview metadata, resolving with `null` if it cannot + * be found for any reason. * * NOTE: This does NOT validate the incoming URL for safety. For example, it may fetch an * insecure HTTP href. It also does not offer a timeout; that is up to the caller. @@ -528,7 +528,7 @@ export async function fetchLinkPreviewMetadata( } /** - * This attempts to fetch an image, returning `null` if it fails for any reason. + * This attempts to fetch an image, resolving with `null` if it fails for any reason. * * NOTE: This does NOT validate the incoming URL for safety. For example, it may fetch an * insecure HTTP href. It also does not offer a timeout; that is up to the caller.