Skip to content

Commit 9910e2d

Browse files
author
Rob Gonnella
committed
chore: fixes formatting errors reported by linting tools
1 parent ea1b3cb commit 9910e2d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

templates/swagger/v1_json.tmpl

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integration/api_repo_file_update_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ func TestAPIUpdateFile(t *testing.T) {
205205
resp = MakeRequest(t, req, http.StatusOK)
206206
DecodeJSON(t, resp, &fileResponse)
207207

208+
expectedHTMLURL = fmt.Sprintf(setting.AppURL+"user2/repo1/src/branch/develop/update/file%d.txt", fileID)
209+
expectedDownloadURL = fmt.Sprintf(setting.AppURL+"user2/repo1/raw/branch/develop/update/file%d.txt", fileID)
208210
assert.Equal(t, expectedSHA, fileResponse.Content.SHA)
209211
assert.Equal(t, expectedHTMLURL, *fileResponse.Content.HTMLURL)
210212
assert.Equal(t, expectedDownloadURL, *fileResponse.Content.DownloadURL)
211213
assert.Equal(t, updateFileOptions.Message+"\n", fileResponse.Commit.Message)
212-
expectedHTMLURL = fmt.Sprintf(setting.AppURL+"user2/repo1/src/branch/develop/update/file%d.txt", fileID)
213-
expectedDownloadURL = fmt.Sprintf(setting.AppURL+"user2/repo1/raw/branch/develop/update/file%d.txt", fileID)
214214
// Test fails creating a file in a branch that already exists with force and branch protection enabled
215215
updateFileOptions = getUpdateFileOptions()
216216
updateFileOptions.BranchName = repo1.DefaultBranch

0 commit comments

Comments
 (0)