Skip to content

Commit

Permalink
fix format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xeho91 committed Aug 12, 2024
1 parent 1b75709 commit beb7a42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/parser/analyse/story/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function getStringValueFromAttribute(params: Params) {
throw new AttributeNotStringError({ filename, component, attribute: node });
}

if (value.type === "ExpressionTag" && value.expression.type === "Literal") {
if (value.type === 'ExpressionTag' && value.expression.type === 'Literal') {
return value.expression.value;
}

Expand Down
4 changes: 2 additions & 2 deletions src/utils/error/parser/analyse/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class AttributeNotArrayError extends StorybookSvelteCSFError {
return true;
}

if (value.type === "ExpressionTag") {
if (value.type === 'ExpressionTag') {
return value.expression.value;
}

Expand Down Expand Up @@ -115,7 +115,7 @@ export class AttributeNotArrayOfStringsError extends StorybookSvelteCSFError {
return true;
}

if (value.type === "ExpressionTag") {
if (value.type === 'ExpressionTag') {
return value.expression.value;
}

Expand Down

0 comments on commit beb7a42

Please sign in to comment.