Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Aug 26, 2024
1 parent bff2b48 commit e050fe6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
Expand Down
4 changes: 3 additions & 1 deletion lib/routes/bins/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ module.exports = (client) => (req, res, next) => {

mock.content.size = 0;
// express is sensitive to mismatched content-length header
mock.headers = mock.headers.filter((header) => header.name.toLowerCase() !== "content-length");
mock.headers = mock.headers.filter(
(header) => header.name.toLowerCase() !== "content-length",
);

validate
.response(mock)
Expand Down
4 changes: 3 additions & 1 deletion lib/routes/bins/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ module.exports = (client) => (req, res, next) => {

mock.content.size = 0;
// express is sensitive to mismatched content-length header
mock.headers = mock.headers.filter((header) => header.name.toLowerCase() !== "content-length");
mock.headers = mock.headers.filter(
(header) => header.name.toLowerCase() !== "content-length",
);

validate
.response(mock)
Expand Down

0 comments on commit e050fe6

Please sign in to comment.