Skip to content

Commit

Permalink
style: format with prettier v3
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 7, 2023
1 parent 1d0395d commit 22b797e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "es5"
}
2 changes: 1 addition & 1 deletion demo/index.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
2 changes: 1 addition & 1 deletion src/drivers/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default defineDriver((opts: FSStorageOptions = {}) => {
async getMeta(key) {
const { atime, mtime, size, birthtime, ctime } = await fsp
.stat(r(key))
.catch(() => ({} as Stats));
.catch(() => ({}) as Stats);
return { atime, mtime, size, birthtime, ctime };
},
setItem(key, value) {
Expand Down

0 comments on commit 22b797e

Please sign in to comment.