Skip to content

Commit

Permalink
fix: prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wconrad265 committed Oct 30, 2024
1 parent f12cc40 commit 5d92bbe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
2 changes: 1 addition & 1 deletion layout.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
21 changes: 4 additions & 17 deletions src/lib/templates/function-error.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -18,18 +18,8 @@

body {
background-color: var(--colorBgApp);
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
Helvetica,
Arial,
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol';
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
color: var(--colorDefaultTextColor);
margin: 0;
line-height: 1.5;
Expand Down Expand Up @@ -63,10 +53,7 @@
section.card {
border-radius: 0.5rem;
background: var(--colorBgCard);
box-shadow:
rgb(6 11 16 / 20%) 0px 16px 24px,
rgb(6 11 16 / 30%) 0px 6px 30px,
rgb(6 11 16 / 40%) 0px 8px 10px;
box-shadow: rgb(6 11 16 / 20%) 0px 16px 24px, rgb(6 11 16 / 30%) 0px 6px 30px, rgb(6 11 16 / 40%) 0px 8px 10px;
border-top-width: 0.5rem;
border-top-style: solid;
border-top-color: var(--colorError);
Expand Down
6 changes: 3 additions & 3 deletions src/utils/command-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ export const error = (message: unknown | Error | string = '', options: { exit?:
message instanceof Error
? message
: // eslint-disable-next-line unicorn/no-nested-ternary
typeof message === 'string'
? new Error(message)
: { message, stack: undefined, name: 'Error' }
typeof message === 'string'
? new Error(message)
: { message, stack: undefined, name: 'Error' }

if (options.exit === false) {
const bang = chalk.red(BANG)
Expand Down

0 comments on commit 5d92bbe

Please sign in to comment.