mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Revert "Add Debian package registry" (#24412)
Reverts go-gitea/gitea#22854
This commit is contained in:
		| @@ -7,10 +7,11 @@ import ( | ||||
| 	"bytes" | ||||
| 	"errors" | ||||
| 	"io" | ||||
| 	"math" | ||||
| 	"os" | ||||
| ) | ||||
|  | ||||
| const maxInt = int(^uint(0) >> 1) // taken from bytes.Buffer | ||||
|  | ||||
| var ( | ||||
| 	// ErrInvalidMemorySize occurs if the memory size is not in a valid range | ||||
| 	ErrInvalidMemorySize = errors.New("Memory size must be greater 0 and lower math.MaxInt32") | ||||
| @@ -36,7 +37,7 @@ type FileBackedBuffer struct { | ||||
|  | ||||
| // New creates a file backed buffer with a specific maximum memory size | ||||
| func New(maxMemorySize int) (*FileBackedBuffer, error) { | ||||
| 	if maxMemorySize < 0 || maxMemorySize > math.MaxInt32 { | ||||
| 	if maxMemorySize < 0 || maxMemorySize > maxInt { | ||||
| 		return nil, ErrInvalidMemorySize | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user