mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
refactor: 🚨 Make more class methods static
This commit is contained in:
parent
5ec19f037a
commit
2537e3cd48
8 changed files with 40 additions and 44 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue