Skip to content

golangci-lint fixes#79

Merged
dex4er merged 1 commit intomainfrom
golangci-lint-fixes
Oct 6, 2025
Merged

golangci-lint fixes#79
dex4er merged 1 commit intomainfrom
golangci-lint-fixes

Conversation

@dex4er
Copy link
Copy Markdown
Owner

@dex4er dex4er commented Oct 6, 2025

Error handling improvements:

  • Added explicit error handling when writing output lines to log files in both terraformWithFilter and terraformWithProgress, returning an error if writing fails. [1] [2]
  • Changed file closing logic to handle and report errors during file closure, printing a message to os.Stderr if closing fails in terraformWithProgress, and safely ignoring errors in terraformWithFilter. [1] [2]

Code simplification:

  • Refactored output reading loops in both functions to use a simpler for !isEof construct, removing unnecessary break statements and improving readability. [1] [2]

@dex4er dex4er merged commit bd18deb into main Oct 6, 2025
6 checks passed
@dex4er dex4er deleted the golangci-lint-fixes branch October 6, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant