Skip to content

Commit

Permalink
fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons committed Feb 6, 2022
1 parent eb8ee4c commit 68083e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ function labelCards(cardData, labels) {
// null otherwise
// @throws {TypeError} for a parameter of the incorrect type
function subtractLabels (labels, labelDifference) {
if (!Array.isArray(labels)) {
throw new TypeError('Param labels must be an array')
if (!isObject(labels)) {
throw new TypeError('Param labels must be an object')
}

if (!Array.isArray(labelDifference)) {
Expand Down

0 comments on commit 68083e7

Please sign in to comment.