-
Notifications
You must be signed in to change notification settings - Fork 35
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
add HAB_FUNC_TEST end to end overrides for builder-worker #1735
base: main
Are you sure you want to change the base?
Conversation
|
||
return res; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can avoid all of this repetitive code by creating a token
variable and populating it with either bobo or the bldr_token
depending on HAB_FUNC_TEST
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
section.end()?; | ||
return Ok(()); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rather than repeating these 2 lines, you can wrap the match
block below in a if env::var_os("HAB_FUNC_TEST").is_none()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Signed-off-by: pozsgaic <[email protected]>
453b184
to
e7ccb2c
Compare
.map_err(Error::MpscAsync)?; | ||
return Err(err); | ||
if env::var_os("HAB_FUNC_TEST").is_some() { | ||
// Skip post process |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You want to use is_none()
to avoid the else
and empty if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep - missed that
Signed-off-by: pozsgaic <[email protected]>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
Signed-off-by: pozsgaic [email protected]