gitsrht-update-hook: Remove doubled context import

This commit is contained in:
Thorben Günther 2023-10-25 14:47:31 +02:00 committed by Drew DeVault
parent 86dbd617ee
commit fb1f3a947c
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package main
import (
"context"
ctx "context"
"database/sql"
"encoding/json"
"fmt"
@ -238,7 +237,7 @@ func postUpdate() {
var oldref, newref string
var oldobj, newobj object.Object
updateKey := fmt.Sprintf("update.%s.%s", pushUuid, refname)
update, err := redis.Get(ctx.Background(), updateKey).Result()
update, err := redis.Get(context.Background(), updateKey).Result()
if update == "" || err != nil {
logger.Println("redis.Get: missing key")
continue