Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement AddZoneRecord #5

Merged
merged 2 commits into from
Nov 4, 2018
Merged

implement AddZoneRecord #5

merged 2 commits into from
Nov 4, 2018

Conversation

jonlil
Copy link
Owner

@jonlil jonlil commented Nov 3, 2018

No description provided.

dns.go Outdated
element.ID = 0

// Compare by value
if *&element == *record {
Copy link
Owner Author

Choose a reason for hiding this comment

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

is this bad practice? @akarl818

Copy link

Choose a reason for hiding this comment

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

Looks fine. Although wouldn't element == *record be the same thing?

Copy link
Owner Author

Choose a reason for hiding this comment

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

That looks a lot simpler! Thanks for the suggestion

dns.go Outdated
element.ID = 0

// Compare by value
if *&element == *record {
Copy link

Choose a reason for hiding this comment

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

Looks fine. Although wouldn't element == *record be the same thing?

@jonlil jonlil merged commit 4be3b6a into master Nov 4, 2018
@jonlil jonlil deleted the add-zone-record branch November 4, 2018 18:28
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