Skip to content

Commit fc6cc9e

Browse files
Update cmd/changelog-extract-notes/main.go
Co-authored-by: Paddy <[email protected]>
1 parent 5b8347a commit fc6cc9e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cmd/changelog-extract-notes/main.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ func main() {
2828
os.Exit(1)
2929
}
3030

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)
31+
b, err := ioutil.ReadFile(changelogPath)
3832
if err != nil {
3933
fmt.Fprintf(os.Stderr, "unable to read changelog file: %s", err)
4034
os.Exit(1)

0 commit comments

Comments
 (0)