Skip to content

Commit 9695824

Browse files
committed
gofmt
1 parent 2763692 commit 9695824

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

pkg/github/repositories.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ func DeleteFile(getClient GetClientFn, t translations.TranslationHelperFunc) (to
661661

662662
// Create a response similar to what the DeleteFile API would return
663663
response := map[string]interface{}{
664-
"commit": newCommit,
664+
"commit": newCommit,
665665
"content": nil,
666666
}
667667

pkg/github/repositories_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,12 +1570,12 @@ func Test_DeleteFile(t *testing.T) {
15701570
}
15711571

15721572
tests := []struct {
1573-
name string
1574-
mockedClient *http.Client
1575-
requestArgs map[string]interface{}
1576-
expectError bool
1573+
name string
1574+
mockedClient *http.Client
1575+
requestArgs map[string]interface{}
1576+
expectError bool
15771577
expectedCommitSHA string
1578-
expectedErrMsg string
1578+
expectedErrMsg string
15791579
}{
15801580
{
15811581
name: "successful file deletion using Git Data API",
@@ -1597,10 +1597,10 @@ func Test_DeleteFile(t *testing.T) {
15971597
"base_tree": "def456",
15981598
"tree": []interface{}{
15991599
map[string]interface{}{
1600-
"path": "docs/example.md",
1601-
"mode": "100644",
1602-
"type": "blob",
1603-
"sha": nil,
1600+
"path": "docs/example.md",
1601+
"mode": "100644",
1602+
"type": "blob",
1603+
"sha": nil,
16041604
},
16051605
},
16061606
}).andThen(
@@ -1641,7 +1641,7 @@ func Test_DeleteFile(t *testing.T) {
16411641
"message": "Delete example file",
16421642
"branch": "main",
16431643
},
1644-
expectError: false,
1644+
expectError: false,
16451645
expectedCommitSHA: "jkl012",
16461646
},
16471647
{
@@ -1973,4 +1973,4 @@ func Test_GetTag(t *testing.T) {
19731973
assert.Equal(t, *tc.expectedTag.Object.SHA, *returnedTag.Object.SHA)
19741974
})
19751975
}
1976-
}
1976+
}

0 commit comments

Comments
 (0)