Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/endpoints/restapi/restapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func putYamlHandler(w http.ResponseWriter, r *http.Request) {
return
}

config.LoadYaml()
Copy link

Copilot AI Apr 10, 2025

Choose a reason for hiding this comment

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

The call to config.LoadYaml() does not handle potential errors. Consider capturing and handling errors from config.LoadYaml() (e.g., logging the error and returning an appropriate HTTP error status) to ensure that configuration loading failures are not silently ignored.

Copilot uses AI. Check for mistakes.
w.WriteHeader(http.StatusOK)

_, err = w.Write([]byte("YAML updated"))
Expand Down