mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	enable staticcheck QFxxxx rules (#34064)
This commit is contained in:
		@@ -105,7 +105,7 @@ func (b *EventWriterBaseImpl) Run(ctx context.Context) {
 | 
			
		||||
			case io.WriterTo:
 | 
			
		||||
				_, err = msg.WriteTo(b.OutputWriteCloser)
 | 
			
		||||
			default:
 | 
			
		||||
				_, err = b.OutputWriteCloser.Write([]byte(fmt.Sprint(msg)))
 | 
			
		||||
				_, err = fmt.Fprint(b.OutputWriteCloser, msg)
 | 
			
		||||
			}
 | 
			
		||||
			if err != nil {
 | 
			
		||||
				FallbackErrorf("unable to write log message of %q (%v): %v", b.Name, err, event.Msg)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user