mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
		| @@ -28,7 +28,7 @@ func doCheckRepositoryEmptyStatus(ctx APITestContext, isEmpty bool) func(*testin | ||||
|  | ||||
| func doAddChangesToCheckout(dstPath, filename string) func(*testing.T) { | ||||
| 	return func(t *testing.T) { | ||||
| 		assert.NoError(t, os.WriteFile(filepath.Join(dstPath, filename), []byte(fmt.Sprintf("# Testing Repository\n\nOriginally created in: %s at time: %v", dstPath, time.Now())), 0644)) | ||||
| 		assert.NoError(t, os.WriteFile(filepath.Join(dstPath, filename), []byte(fmt.Sprintf("# Testing Repository\n\nOriginally created in: %s at time: %v", dstPath, time.Now())), 0o644)) | ||||
| 		assert.NoError(t, git.AddChanges(dstPath, true)) | ||||
| 		signature := git.Signature{ | ||||
| 			Email: "test@example.com", | ||||
| @@ -67,7 +67,7 @@ func testPushDeployKeyOnEmptyRepo(t *testing.T, u *url.URL) { | ||||
|  | ||||
| 		t.Run("InitTestRepository", doGitInitTestRepository(dstPath)) | ||||
|  | ||||
| 		//Setup remote link | ||||
| 		// Setup remote link | ||||
| 		sshURL := createSSHUrl(ctx.GitPath(), u) | ||||
|  | ||||
| 		t.Run("AddRemote", doGitAddRemote(dstPath, "origin", sshURL)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user