mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 09:12:25 -05:00 
			
		
		
		
	* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			232 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			232 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +build !appengine,!js,!windows,!nacl,!plan9
 | |
| 
 | |
| package logrus
 | |
| 
 | |
| import (
 | |
| 	"io"
 | |
| 	"os"
 | |
| )
 | |
| 
 | |
| func checkIfTerminal(w io.Writer) bool {
 | |
| 	switch v := w.(type) {
 | |
| 	case *os.File:
 | |
| 		return isTerminal(int(v.Fd()))
 | |
| 	default:
 | |
| 		return false
 | |
| 	}
 | |
| }
 |