From bf67c8df18e70789bf4c0d938a71bad794325432 Mon Sep 17 00:00:00 2001 From: Valentin REVERSAT Date: Thu, 4 Jul 2024 23:44:26 +0200 Subject: [PATCH] chore(fmt): format project --- pkg/components/calendar_component.go | 3 ++- pkg/components/event_calendar_component_test.go | 3 ++- pkg/components/freebusy_calendar_component.go | 4 +++- pkg/components/time_zone_calendar_component.go | 8 ++++++-- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/pkg/components/calendar_component.go b/pkg/components/calendar_component.go index 6698ec7..e35c6df 100644 --- a/pkg/components/calendar_component.go +++ b/pkg/components/calendar_component.go @@ -1,9 +1,10 @@ package components import ( - "github.com/vareversat/gics/pkg/properties" "io" + "github.com/vareversat/gics/pkg/properties" + "github.com/vareversat/gics/pkg/registries" ) diff --git a/pkg/components/event_calendar_component_test.go b/pkg/components/event_calendar_component_test.go index 595e52e..0986e00 100644 --- a/pkg/components/event_calendar_component_test.go +++ b/pkg/components/event_calendar_component_test.go @@ -3,10 +3,11 @@ package components import ( "bytes" "fmt" - "github.com/vareversat/gics/pkg/registries" "testing" "time" + "github.com/vareversat/gics/pkg/registries" + "github.com/stretchr/testify/assert" "github.com/vareversat/gics/pkg/properties" ) diff --git a/pkg/components/freebusy_calendar_component.go b/pkg/components/freebusy_calendar_component.go index d91c1ce..197e30f 100644 --- a/pkg/components/freebusy_calendar_component.go +++ b/pkg/components/freebusy_calendar_component.go @@ -38,7 +38,9 @@ func NewFreeBusyCalendarComponent( } } -func (fC *freeBusyCalendarComponent) GetProperty(name registries.PropertyNames) properties.Property { +func (fC *freeBusyCalendarComponent) GetProperty( + name registries.PropertyNames, +) properties.Property { for i := 0; i < len(fC.Properties); i++ { if fC.Properties[i].GetName() == name { return fC.Properties[i] diff --git a/pkg/components/time_zone_calendar_component.go b/pkg/components/time_zone_calendar_component.go index 669e79d..645a9cc 100644 --- a/pkg/components/time_zone_calendar_component.go +++ b/pkg/components/time_zone_calendar_component.go @@ -65,7 +65,9 @@ func NewTimeZoneCalendarComponent( } } -func (tC *timeZoneCalendarComponent) GetProperty(name registries.PropertyNames) properties.Property { +func (tC *timeZoneCalendarComponent) GetProperty( + name registries.PropertyNames, +) properties.Property { for i := 0; i < len(tC.Properties); i++ { if tC.Properties[i].GetName() == name { return tC.Properties[i] @@ -74,7 +76,9 @@ func (tC *timeZoneCalendarComponent) GetProperty(name registries.PropertyNames) return nil } -func (tC *timeZoneCalendarSubComponent) GetProperty(name registries.PropertyNames) properties.Property { +func (tC *timeZoneCalendarSubComponent) GetProperty( + name registries.PropertyNames, +) properties.Property { for i := 0; i < len(tC.Properties); i++ { if tC.Properties[i].GetName() == name { return tC.Properties[i]