Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'workhorse/internal/secret/secret.go')
-rw-r--r--workhorse/internal/secret/secret.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/workhorse/internal/secret/secret.go b/workhorse/internal/secret/secret.go
index e8c7c25393c..664f07a52c0 100644
--- a/workhorse/internal/secret/secret.go
+++ b/workhorse/internal/secret/secret.go
@@ -3,7 +3,7 @@ package secret
import (
"encoding/base64"
"fmt"
- "io/ioutil"
+ "os"
"sync"
)
@@ -57,7 +57,7 @@ func setBytes() ([]byte, error) {
return theSecret.bytes, nil
}
- base64Bytes, err := ioutil.ReadFile(theSecret.path)
+ base64Bytes, err := os.ReadFile(theSecret.path)
if err != nil {
return nil, fmt.Errorf("secret.setBytes: read %q: %v", theSecret.path, err)
}