mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Enable style/indent-binary-ops rule
This commit is contained in:
@@ -79,10 +79,10 @@ export function getTypeWeight(type: string, preferred: ValuePreferences): number
|
||||
// specific media types. If more than one media range applies to a
|
||||
// given type, the most specific reference has precedence.
|
||||
return preferred[type] ??
|
||||
preferred[`${main}/${sub}`] ??
|
||||
preferred[`${main}/*`] ??
|
||||
preferred['*/*'] ??
|
||||
0;
|
||||
preferred[`${main}/${sub}`] ??
|
||||
preferred[`${main}/*`] ??
|
||||
preferred['*/*'] ??
|
||||
0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -84,7 +84,7 @@ export class ExtensionBasedMapper extends BaseFileIdentifierMapper {
|
||||
const extension = getExtension(filePath).toLowerCase();
|
||||
return mime.lookup(extension) ||
|
||||
this.customTypes[extension] ||
|
||||
await super.getContentTypeFromPath(filePath);
|
||||
await super.getContentTypeFromPath(filePath);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user