Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 21, 2024
1 parent d3481d5 commit df87e84
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ export function limitText(text: string, maxWidth: number) {
export function formatPackageWithUrl(pkg: string, url?: string, limits = 80) {
return url
? terminalLink(
pkg,
url,
{
fallback: (_, url) => (pkg.length + url.length > limits)
? pkg
: pkg + c.dim(` - ${url}`),
},
)
pkg,
url,
{
fallback: (_, url) => (pkg.length + url.length > limits)
? pkg
: pkg + c.dim(` - ${url}`),
},
)
: pkg
}

0 comments on commit df87e84

Please sign in to comment.