refactor: 🚨 Make more class methods static

This commit is contained in:
Jesse Wierzbinski 2024-10-03 19:02:13 +02:00
parent 5ec19f037a
commit 2537e3cd48
No known key found for this signature in database
8 changed files with 40 additions and 44 deletions

View file

@ -70,7 +70,10 @@ export class ImageConversionPreprocessor implements MediaPreprocessor {
return {
file: new File(
[convertedBuffer],
this.getReplacedFileName(file.name, commandName),
ImageConversionPreprocessor.getReplacedFileName(
file.name,
commandName,
),
{
type: targetFormat,
lastModified: Date.now(),
@ -100,7 +103,7 @@ export class ImageConversionPreprocessor implements MediaPreprocessor {
* @param newExtension - The new extension.
* @returns The filename with the new extension.
*/
private getReplacedFileName(
private static getReplacedFileName(
fileName: string,
newExtension: string,
): string {