Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Cleaning up error usage #2#3476

Merged
jackfrancis merged 6 commits intoAzure:masterfrom
tariq1890:cleanup_err_usage
Jul 17, 2018
Merged

Cleaning up error usage #2#3476
jackfrancis merged 6 commits intoAzure:masterfrom
tariq1890:cleanup_err_usage

Conversation

@tariq1890
Copy link
Contributor

@tariq1890 tariq1890 commented Jul 15, 2018

What this PR does / why we need it: Picking up from where #3386 left off. For consistency across entire project :)

Special notes for your reviewer:

If applicable:

  • documentation
  • unit tests
  • tested backward compatibility (ie. deploy with previous version, upgrade with this branch)

Release note:

@tariq1890 tariq1890 force-pushed the cleanup_err_usage branch from 18c51fa to 70489eb Compare July 15, 2018 21:25
Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

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

lgtm, @tariq1890 you'll need to rebase to fix the unit test error

@tariq1890 tariq1890 force-pushed the cleanup_err_usage branch from 5364894 to 17f42e5 Compare July 16, 2018 23:43
p.ExtensionProfiles = test.extensionProfiles
err := p.Validate(true)
if !reflect.DeepEqual(err, test.expectedErr) {
if !helpers.EqualError(err, test.expectedErr) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@CecileRobertMichon @jackfrancis FYI I changed this and added a new helper method as the reflect Deep Equals is a possible anti-pattern

golang/lint#232

@tariq1890
Copy link
Contributor Author

@CecileRobertMichon Rebased!

Copy link
Member

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

lgtm

thanks @tariq1890!

@jackfrancis
Copy link
Member

@tariq1890 + @cpuguy83 ❤️ ❤️ ❤️

@jackfrancis jackfrancis merged commit 1b62476 into Azure:master Jul 17, 2018
kkmsft pushed a commit to kkmsft/acs-engine that referenced this pull request Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants