mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Removed unnecessary conversions (#7557)
No need to convert to the same type.
This commit is contained in:
		
				
					committed by
					
						 zeripath
						zeripath
					
				
			
			
				
	
			
			
			
						parent
						
							2f75766532
						
					
				
				
					commit
					54d96c79b5
				
			| @@ -31,7 +31,7 @@ func TestRender_StandardLinks(t *testing.T) { | ||||
|  | ||||
| 	test := func(input, expected, expectedWiki string) { | ||||
| 		buffer := RenderString(input, setting.AppSubURL, nil) | ||||
| 		assert.Equal(t, strings.TrimSpace(expected), strings.TrimSpace(string(buffer))) | ||||
| 		assert.Equal(t, strings.TrimSpace(expected), strings.TrimSpace(buffer)) | ||||
| 		bufferWiki := RenderWiki([]byte(input), setting.AppSubURL, nil) | ||||
| 		assert.Equal(t, strings.TrimSpace(expectedWiki), strings.TrimSpace(bufferWiki)) | ||||
| 	} | ||||
| @@ -74,7 +74,7 @@ func TestRender_Images(t *testing.T) { | ||||
|  | ||||
| 	test := func(input, expected string) { | ||||
| 		buffer := RenderString(input, setting.AppSubURL, nil) | ||||
| 		assert.Equal(t, strings.TrimSpace(expected), strings.TrimSpace(string(buffer))) | ||||
| 		assert.Equal(t, strings.TrimSpace(expected), strings.TrimSpace(buffer)) | ||||
| 	} | ||||
|  | ||||
| 	url := "../../.images/src/02/train.jpg" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user