We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b8347a commit fc6cc9eCopy full SHA for fc6cc9e
cmd/changelog-extract-notes/main.go
@@ -28,13 +28,7 @@ func main() {
28
os.Exit(1)
29
}
30
31
- f, err := os.Open(changelogPath)
32
- if err != nil {
33
- fmt.Fprintf(os.Stderr, "unable to open changelog file: %s", err)
34
- os.Exit(1)
35
- }
36
-
37
- b, err := ioutil.ReadAll(f)
+ b, err := ioutil.ReadFile(changelogPath)
38
if err != nil {
39
fmt.Fprintf(os.Stderr, "unable to read changelog file: %s", err)
40
0 commit comments