Skip to content

Commit

Permalink
Fix trailing space and object deconstructing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ssaigh committed Sep 25, 2024
1 parent b04590c commit 8491996
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/posts/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ module.exports = function (Posts) {
const content = data.content.toString();
const timestamp = data.timestamp || Date.now();
const isMain = data.isMain || false;
const annonymousType = data.annonymousType;

const { annonymousType } = data;

if (!uid && parseInt(uid, 10) !== 0) {
throw new Error('[[error:invalid-uid]]');
Expand Down

0 comments on commit 8491996

Please sign in to comment.