Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjasikowski committed Sep 26, 2024
1 parent d30ed4e commit bf3d9a0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/ExpensiMark.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import str from "./str";

'worklet';

import Str from './str';
Expand Down Expand Up @@ -82,15 +80,14 @@ const MARKDOWN_VIDEO_REGEX = new RegExp(
const SLACK_SPAN_NEW_LINE_TAG = '<span class="c-mrkdwn__br" data-stringify-type="paragraph-break" style="box-sizing: inherit; display: block; height: unset;"></span>';

export default class ExpensiMark {

getAttributeCache = (extras?: Extras) => {
if (!extras) {
return {attrCachingFn: undefined, attrCache: undefined};
}

return {
attrCachingFn: extras.mediaAttributeCachingFn ?? extras.cacheVideoAttributes,
attrCache: extras.mediaAttributeCache ?? extras.videoAttributeCache
attrCache: extras.mediaAttributeCache ?? extras.videoAttributeCache,
};
};

Expand Down Expand Up @@ -732,7 +729,7 @@ export default class ExpensiMark {
return `![${altText}](${imgSource})`;
}
return `!(${imgSource})`;
}
},
},

{
Expand Down

0 comments on commit bf3d9a0

Please sign in to comment.