Skip to content

Shouldn't we use a ternary here? #378

Answered by jongpie
rmccu asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rmccu
Comment options

Answer selected by jongpie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants