mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-20 01:09:06 +08:00
style: prefer const for originalSrc
This commit is contained in:
parent
008dcbaf22
commit
92f636474d
@ -231,7 +231,7 @@ export class SnapshotFormatter extends AsyncService {
|
||||
if (imageRetention === 'alt') {
|
||||
return alt ? `(Image ${++imgIdx}: ${alt})` : '';
|
||||
}
|
||||
let originalSrc = (node.getAttribute('src') || '').trim();
|
||||
const originalSrc = (node.getAttribute('src') || '').trim();
|
||||
let linkPreferredSrc = originalSrc;
|
||||
const maybeSrcSet: string = (node.getAttribute('srcset') || '').trim();
|
||||
if (!linkPreferredSrc && maybeSrcSet) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user