removePageIfPresent removes a page by name if it exists, ignoring errors.
(name string)
| 90 | |
| 91 | // removePageIfPresent removes a page by name if it exists, ignoring errors. |
| 92 | func (a *App) removePageIfPresent(name string) { |
| 93 | if a.pages != nil && a.pages.HasPage(name) { |
| 94 | _ = a.pages.RemovePage(name) |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | // startRefresh attempts to acquire the refresh guard. |
| 99 | // Returns (token, true) on success; (0, false) if another refresh is already in progress. |
no outgoing calls
no test coverage detected