From 4815cd29bc41d3110c4d6dfeded5a6279c58b7b6 Mon Sep 17 00:00:00 2001 From: henrygd Date: Tue, 26 Aug 2025 18:41:42 -0400 Subject: [PATCH] ghupdate: rename plugin struct --- beszel/internal/ghupdate/ghupdate.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/beszel/internal/ghupdate/ghupdate.go b/beszel/internal/ghupdate/ghupdate.go index 5421465..711c699 100644 --- a/beszel/internal/ghupdate/ghupdate.go +++ b/beszel/internal/ghupdate/ghupdate.go @@ -66,8 +66,13 @@ type Config struct { DataDir string } +type updater struct { + config Config + currentVersion string +} + func Update(config Config) (updated bool, err error) { - p := &plugin{ + p := &updater{ currentVersion: beszel.Version, config: config, } @@ -75,12 +80,7 @@ func Update(config Config) (updated bool, err error) { return p.update() } -type plugin struct { - config Config - currentVersion string -} - -func (p *plugin) update() (updated bool, err error) { +func (p *updater) update() (updated bool, err error) { ColorPrint(ColorYellow, "Fetching release information...") if p.config.DataDir == "" {