Skip to content

Commit 06829ad

Browse files
committed
Specify go-version
1 parent 0c01def commit 06829ad

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858

5959
- uses: dominikh/[email protected]
6060
with:
61+
go-version: '1.20'
6162
install-go: false
6263

6364
errcheck:

cmd/pg_unregister/main.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ func processUnregistration(ctx context.Context) error {
5959
}
6060

6161
slotName := fmt.Sprintf("repmgr_slot_%d", member.ID)
62-
if err := removeReplicationSlot(ctx, conn, slotName); err != nil {
63-
return err
64-
}
65-
66-
return nil
62+
return removeReplicationSlot(ctx, conn, slotName)
6763
}
6864

6965
func removeReplicationSlot(ctx context.Context, conn *pgx.Conn, slotName string) error {

0 commit comments

Comments
 (0)