Fix issues reported by semgrep
This commit is contained in:
parent
7facc8ccc1
commit
36c5d39c2c
5 changed files with 6 additions and 26 deletions
|
@ -141,9 +141,7 @@ func TestUploadLargeFile(t *testing.T) {
|
|||
|
||||
azcfg, err := azure.ParseConfig(os.Getenv("RESTIC_TEST_AZURE_REPOSITORY"))
|
||||
if err != nil {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
cfg := azcfg.(azure.Config)
|
||||
|
@ -158,9 +156,7 @@ func TestUploadLargeFile(t *testing.T) {
|
|||
|
||||
be, err := azure.Create(cfg, tr)
|
||||
if err != nil {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue