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

Refactor ScaleWorkload #238

Merged
merged 3 commits into from
Aug 26, 2019
Merged

Refactor ScaleWorkload #238

merged 3 commits into from
Aug 26, 2019

Conversation

SupriyaKasten
Copy link
Contributor

Change Overview

Refactor the switch case

Pull request type

Please check the type of change your PR introduces:

  • Work in Progress
  • Refactoring (no functional changes, no api changes)
  • Trival/Minor
  • Bugfix
  • Feature
  • Documentation

Test Plan

  • Manual
  • Unit test
  • E2E

case string:
if val, err = strconv.Atoi(rep.(string)); err != nil {
var v int
if v, err = strconv.Atoi(val); err != nil {
err = errors.Wrapf(err, "Cannot convert %s to int ", rep.(string))
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: val can be used in the error instead of rep.(string)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, forgot to change that! Thanks @julio-lopez

@SupriyaKasten SupriyaKasten merged commit 23f43b2 into master Aug 26, 2019
@SupriyaKasten SupriyaKasten deleted the refactore-scale-workload branch August 26, 2019 18:59
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.

None yet

3 participants