Skip to content

Commit

Permalink
Relax the panic to avoid panics at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Sep 20, 2023
1 parent 1841f69 commit 89b6613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func Provider() tfbridge.ProviderInfo {
func readFile(path string) []byte {
b, err := os.ReadFile(path)
if err != nil {
panic(err)
return []byte{}
}
return b
}

0 comments on commit 89b6613

Please sign in to comment.