diff options
| author | T <t@tjp.lol> | 2025-03-26 08:17:18 -0600 |
|---|---|---|
| committer | T <t@tjp.lol> | 2025-03-26 08:18:01 -0600 |
| commit | 37ffc54aeec62c5201fd1ac3dc2313ec309aa6fb (patch) | |
| tree | 5231faa047e583c135b1b32884e4188391238f2d /actions.go | |
| parent | 7a125c61cc1f9d7040b52184e8181012d71c3769 (diff) | |
have HandleResource no-op on an empty state
Diffstat (limited to 'actions.go')
| -rw-r--r-- | actions.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -606,6 +606,9 @@ func HandleResource(state *BrowserState) error { return print(state) } + if state.Url == nil { + return nil + } return Save(state, path.Base(state.Url.Path)) } |
