Skip to content

Fix deferInLoop error #10299

@z1cheng

Description

@z1cheng

A followup PR: create a function just for this case, with the first statement on os.Create, and if no err after that doing a defer outFile.Close()

See: #10196 (comment)

/assign

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.needs-priorityneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions