aboutsummaryrefslogtreecommitdiff
path: root/internal/rtree/remote.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2025-09-29 21:48:35 +0200
committerStefan Majewsky <majewsky@gmx.net>2025-09-29 21:48:35 +0200
commitfa24620c50a56ae6c3c31575e861098d0f0ed177 (patch)
treee6963f607605577ca06dfeff666e5a186bb2b15f /internal/rtree/remote.go
parent24762f09de2aa8cada3f3c63afa313e06ebf47c8 (diff)
downloadgofu-fa24620c50a56ae6c3c31575e861098d0f0ed177.tar.gz
run `modernize -fix ./...`
Also drop util/gocovcat.go which has been obsolete since 122068efd4a348921b736b4456d4e1c999dbfb79.
Diffstat (limited to 'internal/rtree/remote.go')
-rw-r--r--internal/rtree/remote.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/rtree/remote.go b/internal/rtree/remote.go
index 3d443aa..a8d5564 100644
--- a/internal/rtree/remote.go
+++ b/internal/rtree/remote.go
@@ -102,13 +102,13 @@ func (u RemoteURL) CheckoutPath() (string, error) {
}
// MarshalYAML implements the yaml.Marshaler interface.
-func (u RemoteURL) MarshalYAML() (interface{}, error) {
+func (u RemoteURL) MarshalYAML() (any, error) {
//store URLs in the index in the canonical format
return u.CanonicalURL(), nil
}
// UnmarshalYAML implements the yaml.Unmarshaler interface.
-func (u *RemoteURL) UnmarshalYAML(unmarshal func(interface{}) error) error {
+func (u *RemoteURL) UnmarshalYAML(unmarshal func(any) error) error {
var s string
err := unmarshal(&s)
if err == nil {