From b81b6135f6d27be7c48e048fc79322fc40ab6ac1 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 8 Jun 2020 09:05:03 +0100 Subject: [PATCH] Clean up unused optional parameter --- ReactNativeClient/lib/markdownUtils.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ReactNativeClient/lib/markdownUtils.js b/ReactNativeClient/lib/markdownUtils.js index 34fcc0fe6..69a15488a 100644 --- a/ReactNativeClient/lib/markdownUtils.js +++ b/ReactNativeClient/lib/markdownUtils.js @@ -119,9 +119,8 @@ const markdownUtils = { return title.replace(filterRegex, '').replace(mdLinkRegex, '$1').replace(emptyMdLinkRegex, '$1').substring(0,80); }, - stripMarkdown(text, options = { gfm: false }) { - // Removes Markdown syntax elements from the given text - return removeMarkdown(text, options); + stripMarkdown(text) { + return removeMarkdown(text, { gfm: false }); }, };