Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jchartrand committed Oct 22, 2024
1 parent 52e86f7 commit 56e93fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ async function callService (endpoint, body) {
return data
}

function isArrayOfStrings(arrayToCheck) {
return arrayToCheck && Array.isArray(arrayToCheck) && arrayToCheck.length && arrayToCheck.every(item=> {return (item && typeof item == "string")})
function isArrayOfStrings (arrayToCheck) {
return arrayToCheck && Array.isArray(arrayToCheck) && arrayToCheck.length && arrayToCheck.every(item => { return (item && typeof item === 'string') })
}

function isNotValidVC (unSignedVC) {
if (!unSignedVC) return true;
if (!unSignedVC) return true
const isContextPropertyValid = isArrayOfStrings(unSignedVC['@context'])
const isTypePropertyValid = isArrayOfStrings(unSignedVC.type)
return ! (isContextPropertyValid && isTypePropertyValid)
return !(isContextPropertyValid && isTypePropertyValid)
}

export async function build (opts = {}) {
Expand Down

0 comments on commit 56e93fc

Please sign in to comment.