Fix prettier issue
This commit is contained in:
@ -5,11 +5,12 @@ import { getFirstLevelElements } from "./util";
|
|||||||
export const appendContentType = (element: Element, contentType: string, extension: string): void => {
|
export const appendContentType = (element: Element, contentType: string, extension: string): void => {
|
||||||
const relationshipElements = getFirstLevelElements(element, "Types");
|
const relationshipElements = getFirstLevelElements(element, "Types");
|
||||||
|
|
||||||
const exist = relationshipElements.some(el =>
|
const exist = relationshipElements.some(
|
||||||
el.type === "element"
|
(el) =>
|
||||||
&& el.name === "Default"
|
el.type === "element" &&
|
||||||
&& el?.attributes?.ContentType === contentType
|
el.name === "Default" &&
|
||||||
&& el?.attributes?.Extension === extension
|
el?.attributes?.ContentType === contentType &&
|
||||||
|
el?.attributes?.Extension === extension,
|
||||||
);
|
);
|
||||||
if (exist) {
|
if (exist) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user