Skip to content

add nil guard in #lookup_dn#8

Draft
aploshay wants to merge 1 commit intomainfrom
lookup_dn_nil_guard
Draft

add nil guard in #lookup_dn#8
aploshay wants to merge 1 commit intomainfrom
lookup_dn_nil_guard

Conversation

@aploshay
Copy link
Contributor

@aploshay aploshay commented Mar 4, 2026

In draft status pending investigation of downstream effects of passing along nil result -- which should be fine because we already had a nil guard at the end?

But maybe it's better to get a hard stop to inform us the LDAP connection isn't working?

@aploshay aploshay requested a review from cjcolvar March 4, 2026 19:49
Copy link

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I think it is probably better for this method to return nil instead of raising an error.

I haven't investigated how this impacts consumers of this method though so we'll need to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants