Skip to content

Commit c39b45a

Browse files
authored
Remove Lodash from rule result
Lodash is a transitive dependency, instead of relying on it just in-line the simple isObjectLike code
1 parent 36987ef commit c39b45a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rule-result.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict'
22

33
import deepClone from 'clone'
4-
import isObject from 'lodash/isObjectLike'
54

65
export default class RuleResult {
76
constructor (conditions, event, priority, name) {
@@ -17,7 +16,7 @@ export default class RuleResult {
1716
}
1817

1918
resolveEventParams (almanac) {
20-
if (isObject(this.event.params)) {
19+
if (this.event.params != null && typeof this.event.params === 'object') {
2120
const updates = []
2221
for (const key in this.event.params) {
2322
if (Object.prototype.hasOwnProperty.call(this.event.params, key)) {

0 commit comments

Comments
 (0)