Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update internal/services/appservice/helpers/linux_web_app_schema.go
Hi @katbyte, I'm not sure that I got your point, since line 977 `len(autoHeal.Triggers) == 0`, line 979 `autoHeal.Triggers[0]` would trigger an index out of range panic right? Do you mean `if len(autoHeal.Triggers) == 1 {` for line 977? I personal prefer return early style to reduce nested blocks' depth and avoid [arrow code](https://blog.codinghorror.com/flattening-arrow-code/), but this is HashiCorp's project so I would be happy to follow your guidance. Co-authored-by: kt <[email protected]>
- Loading branch information