mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01:00 
			
		
		
		
	Fix queue pop error and stat empty repository error (#10248)
* Fix queue pop error and stat empty repository error * Fix error
This commit is contained in:
		| @@ -121,7 +121,7 @@ func (fifo *RedisByteFIFO) PushFunc(data []byte, fn func() error) error { | ||||
| // Pop pops data from the start of the fifo | ||||
| func (fifo *RedisByteFIFO) Pop() ([]byte, error) { | ||||
| 	data, err := fifo.client.LPop(fifo.queueName).Bytes() | ||||
| 	if err != nil && err == redis.Nil { | ||||
| 	if err == nil || err == redis.Nil { | ||||
| 		return data, nil | ||||
| 	} | ||||
| 	return data, err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user