Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
notjaywu committed Jul 12, 2024
1 parent b2a1d37 commit ee90d54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions lib/routes/bins/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ module.exports = (client) => (req, res, next) => {
.then(function () {
const id = uuid.v4();

client.set(
`bin:${id}`,
JSON.stringify(mock),
);
client.set(`bin:${id}`, JSON.stringify(mock));

res.view = "redirect";
res.status(201).location(util.format("/bin/%s", id)).body = id;
Expand Down
5 changes: 1 addition & 4 deletions lib/routes/bins/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ module.exports = (client) => (req, res, next) => {
validate
.response(mock)
.then(function () {
client.set(
`bin:${compoundId}`,
JSON.stringify(mock),
);
client.set(`bin:${compoundId}`, JSON.stringify(mock));

res.view = "redirect";
res.status(200).location(`/bin/${compoundId}`).body = id;
Expand Down

0 comments on commit ee90d54

Please sign in to comment.