diff options
Diffstat (limited to 'src/ui.rs')
| -rw-r--r-- | src/ui.rs | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -269,6 +269,10 @@ impl Approver { | |||
| 269 | if self.yolo || self.edits_allowed { | 269 | if self.yolo || self.edits_allowed { |
| 270 | return true; | 270 | return true; |
| 271 | } | 271 | } |
| 272 | // No point showing a diff that no one is present to approve. | ||
| 273 | if !self.interactive { | ||
| 274 | return false; | ||
| 275 | } | ||
| 272 | println!("{preview}"); | 276 | println!("{preview}"); |
| 273 | // The path is already on the tool line above. | 277 | // The path is already on the tool line above. |
| 274 | let _ = path; | 278 | let _ = path; |
