Skip to content

Commit 242afe3

Browse files
author
Matthew Fisher
committed
ref(builder): create Reader after error handling
1 parent a11cc4f commit 242afe3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/bin/get-app-config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ func main() {
5757
}
5858

5959
data, err := json.Marshal(&builder.ConfigHook{ReceiveUser: *user, ReceiveRepo: *app})
60-
b := bytes.NewReader(data)
6160

6261
if err != nil {
6362
fmt.Println(err)
6463
os.Exit(1)
6564
}
6665

66+
b := bytes.NewReader(data)
6767
client := &http.Client{}
6868
req, err := http.NewRequest("POST", *url, b)
6969

0 commit comments

Comments
 (0)