From 347b20fc91505584bc9efbeca89590a411b95e79 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Tue, 6 May 2025 12:40:47 +0200 Subject: All: Run modernize --test --fix --- internal/discovery/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/discovery') diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go index c7eae95..3fcb68c 100644 --- a/internal/discovery/discovery.go +++ b/internal/discovery/discovery.go @@ -98,7 +98,7 @@ var DiscoURL = "https://disco.eduvpn.org/v2/" // file is a helper function that gets a disco JSON and fills the structure with it // If it was unsuccessful it returns an error. -func (discovery *Discovery) file(ctx context.Context, jsonFile string, previousVersion uint64, last time.Time, structure interface{}) (time.Time, error) { +func (discovery *Discovery) file(ctx context.Context, jsonFile string, previousVersion uint64, last time.Time, structure any) (time.Time, error) { var newUpdate time.Time // No HTTP client present, create one if discovery.httpClient == nil { -- cgit v1.2.3