mirror of
				https://github.com/jesseduffield/lazygit.git
				synced 2025-10-30 23:57:43 +02:00 
			
		
		
		
	Ignore return values of fmt.Scanln
This commit is contained in:
		| @@ -970,7 +970,7 @@ func (gui *Gui) runSubprocess(cmdObj oscommands.ICmdObj) error { //nolint:unpara | ||||
|  | ||||
| 		// scan to buffer to prevent run unintentional operations when TUI resumes. | ||||
| 		var buffer string | ||||
| 		fmt.Scanln(&buffer) // wait for enter press | ||||
| 		_, _ = fmt.Scanln(&buffer) // wait for enter press | ||||
| 	} | ||||
|  | ||||
| 	return err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user