Skip to content

Fix inconsistent code-style raised at security audit#386

Merged
stefanprodan merged 2 commits intofluxcd:mainfrom
pjbgf:audit-followup
Dec 22, 2021
Merged

Fix inconsistent code-style raised at security audit#386
stefanprodan merged 2 commits intofluxcd:mainfrom
pjbgf:audit-followup

Conversation

@pjbgf
Copy link
Copy Markdown
Member

@pjbgf pjbgf commented Dec 21, 2021

Changes summary:

  • Add check for nil to fix inconsistent code-style raised at the security audit.
  • Short-circuit function when ExternalEventRecorder is nil.

Relates to fluxcd/pkg#173

Paulo Gomes added 2 commits December 21, 2021 14:03
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
When ExternalEventRecorder is nil, the helm release reference is not used
therefore the function can safely return early.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Copy link
Copy Markdown
Member

@stefanprodan stefanprodan 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 @pjbgf

@stefanprodan stefanprodan merged commit e2b988a into fluxcd:main Dec 22, 2021
@pjbgf pjbgf deleted the audit-followup branch December 22, 2021 08:50
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