mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix source typos (#16374)
* Fix source typos
Follow up to e0296b6a6  
Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby`
* rm "ignore destory on `make misspell-check`"
Co-authored-by: 6543 <6543@obermui.de>
			
			
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@@ -297,7 +297,7 @@ misspell-check:
 | 
				
			|||||||
		GO111MODULE=off $(GO) get -u github.com/client9/misspell/cmd/misspell; \
 | 
							GO111MODULE=off $(GO) get -u github.com/client9/misspell/cmd/misspell; \
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
	@echo "Running misspell-check..."
 | 
						@echo "Running misspell-check..."
 | 
				
			||||||
	@misspell -error -i unknwon,destory $(GO_SOURCES_OWN)
 | 
						@misspell -error -i unknwon $(GO_SOURCES_OWN)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: misspell
 | 
					.PHONY: misspell
 | 
				
			||||||
misspell:
 | 
					misspell:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -135,7 +135,7 @@ func TestAPILFSBatch(t *testing.T) {
 | 
				
			|||||||
		assert.Equal(t, "Oid or size are invalid", br.Objects[1].Error.Message)
 | 
							assert.Equal(t, "Oid or size are invalid", br.Objects[1].Error.Message)
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	t.Run("PointerSizeMissmatch", func(t *testing.T) {
 | 
						t.Run("PointerSizeMismatch", func(t *testing.T) {
 | 
				
			||||||
		defer PrintCurrentTest(t)()
 | 
							defer PrintCurrentTest(t)()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		req := newRequest(t, &lfs.BatchRequest{
 | 
							req := newRequest(t, &lfs.BatchRequest{
 | 
				
			||||||
@@ -376,7 +376,7 @@ func TestAPILFSUpload(t *testing.T) {
 | 
				
			|||||||
		session.MakeRequest(t, req, http.StatusOK)
 | 
							session.MakeRequest(t, req, http.StatusOK)
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	t.Run("HashMissmatch", func(t *testing.T) {
 | 
						t.Run("HashMismatch", func(t *testing.T) {
 | 
				
			||||||
		defer PrintCurrentTest(t)()
 | 
							defer PrintCurrentTest(t)()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		req := newRequest(t, lfs.Pointer{Oid: "2581dd7bbc1fe44726de4b7dd806a087a978b9c5aec0a60481259e34be09b06a", Size: 1}, "a")
 | 
							req := newRequest(t, lfs.Pointer{Oid: "2581dd7bbc1fe44726de4b7dd806a087a978b9c5aec0a60481259e34be09b06a", Size: 1}, "a")
 | 
				
			||||||
@@ -384,7 +384,7 @@ func TestAPILFSUpload(t *testing.T) {
 | 
				
			|||||||
		session.MakeRequest(t, req, http.StatusUnprocessableEntity)
 | 
							session.MakeRequest(t, req, http.StatusUnprocessableEntity)
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	t.Run("SizeMissmatch", func(t *testing.T) {
 | 
						t.Run("SizeMismatch", func(t *testing.T) {
 | 
				
			||||||
		defer PrintCurrentTest(t)()
 | 
							defer PrintCurrentTest(t)()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		req := newRequest(t, lfs.Pointer{Oid: "ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb", Size: 2}, "a")
 | 
							req := newRequest(t, lfs.Pointer{Oid: "ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb", Size: 2}, "a")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -122,7 +122,7 @@ func TestNewUserPost_InvalidEmail(t *testing.T) {
 | 
				
			|||||||
	assert.NotEmpty(t, ctx.Flash.ErrorMsg)
 | 
						assert.NotEmpty(t, ctx.Flash.ErrorMsg)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestNewUserPost_VisiblityDefaultPublic(t *testing.T) {
 | 
					func TestNewUserPost_VisibilityDefaultPublic(t *testing.T) {
 | 
				
			||||||
	models.PrepareTestEnv(t)
 | 
						models.PrepareTestEnv(t)
 | 
				
			||||||
	ctx := test.MockContext(t, "admin/users/new")
 | 
						ctx := test.MockContext(t, "admin/users/new")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user