-
It seems like using a ternary to set logOwnerId would make more sense here. Also, rather than compare logEntryEvent.UserLicenseName__c to guestUserLicenseName using ==, shouldn't we use the .equals() method? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It's not very idiomatic to call |
Beta Was this translation helpful? Give feedback.
-
I agree with @jamessimone, I don't personally like using But @rmccu as far as this particular block of code, you're looking at an out of date version - the commit you're referencing, 3b04138, is 4-5 months old (v4.7.1). In the latest version, v4.8.3, the functionality for determining the log owner ID has grown, so there's now a private method that determines the correct owner ID. |
Beta Was this translation helpful? Give feedback.
I agree with @jamessimone, I don't personally like using
.equals()
in this context, I think using==
is more idiomatic.But @rmccu as far as this particular block of code, you're looking at an out of date version - the commit you're referencing, 3b04138, is 4-5 months old (v4.7.1). In the latest version, v4.8.3, the functionality for determining the log owner ID has grown, so there's now a private method that determines the correct owner ID.