mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
		@@ -122,7 +122,7 @@ func (m *MinioStorage) buildMinioPath(p string) string {
 | 
			
		||||
 | 
			
		||||
// Open open a file
 | 
			
		||||
func (m *MinioStorage) Open(path string) (Object, error) {
 | 
			
		||||
	var opts = minio.GetObjectOptions{}
 | 
			
		||||
	opts := minio.GetObjectOptions{}
 | 
			
		||||
	object, err := m.client.GetObject(m.ctx, m.bucket, m.buildMinioPath(path), opts)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, convertMinioErr(err)
 | 
			
		||||
@@ -206,7 +206,7 @@ func (m *MinioStorage) URL(path, name string) (*url.URL, error) {
 | 
			
		||||
 | 
			
		||||
// IterateObjects iterates across the objects in the miniostorage
 | 
			
		||||
func (m *MinioStorage) IterateObjects(fn func(path string, obj Object) error) error {
 | 
			
		||||
	var opts = minio.GetObjectOptions{}
 | 
			
		||||
	opts := minio.GetObjectOptions{}
 | 
			
		||||
	lobjectCtx, cancel := context.WithCancel(m.ctx)
 | 
			
		||||
	defer cancel()
 | 
			
		||||
	for mObjInfo := range m.client.ListObjects(lobjectCtx, m.bucket, minio.ListObjectsOptions{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user