mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-03 20:19:07 +02:00
Move no-op rationale into empty function bodies
Replace the doc comments above the empty no-op stubs (bindTrayClick, startTrayTheme, noopSessionWatcher.Dismiss/Close) with short in-body comments explaining why each is empty.
This commit is contained in:
@@ -35,5 +35,10 @@ func (w noopSessionWatcher) Update(deadline time.Time) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (noopSessionWatcher) Dismiss() {}
|
||||
func (noopSessionWatcher) Close() {}
|
||||
func (noopSessionWatcher) Dismiss() {
|
||||
// No-op: only suppresses the timer-driven final-warning, which this stub never arms.
|
||||
}
|
||||
|
||||
func (noopSessionWatcher) Close() {
|
||||
// No-op: no timers to stop and no state to unwind; the recorder is cleared via Update(zero).
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user