Skip to content

Commit

Permalink
Address code scanning alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Oct 24, 2023
1 parent fce91b7 commit 54b1f1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/sso.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class SSO {

addShort(enumValue) {
if (
!this.short?.length > 0 &&
this.short?.length <= 0 &&
typeof enumValue === "string" &&
validEnums.includes(enumValue)
) {
Expand Down
2 changes: 1 addition & 1 deletion src/setupEndpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const endpointHandler = async function(node, req, res) {
let obj;

if (node.endpoint.endpointKind === "raw") {
obj = await node.logic(req, res, context);
await node.logic(req, res, context);
// If it's a raw endpoint, they must handle all other steps manually
return;

Expand Down

0 comments on commit 54b1f1c

Please sign in to comment.