mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Chore: drop file writing worker [skip ci]
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import type { Span } from '../../trace';
|
||||
import { compareAndWriteFile } from '../create-file';
|
||||
import { compareAndWriteFileInWorker } from '../create-file.worker';
|
||||
|
||||
/**
|
||||
* The class is not about holding rule data, instead it determines how the
|
||||
@@ -79,18 +78,6 @@ export abstract class BaseWriteStrategy {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.result.length > 3000) {
|
||||
return compareAndWriteFileInWorker(
|
||||
span,
|
||||
this.withPadding(
|
||||
title,
|
||||
description,
|
||||
date,
|
||||
this.result
|
||||
),
|
||||
filePath
|
||||
);
|
||||
}
|
||||
return compareAndWriteFile(
|
||||
span,
|
||||
this.withPadding(
|
||||
|
||||
Reference in New Issue
Block a user