Skip to content

Commit

Permalink
chore(fmt): format project
Browse files Browse the repository at this point in the history
  • Loading branch information
vareversat committed Jul 4, 2024
1 parent ad9ff12 commit bf67c8d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pkg/components/calendar_component.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/components/event_calendar_component_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 3 additions & 1 deletion pkg/components/freebusy_calendar_component.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 6 additions & 2 deletions pkg/components/time_zone_calendar_component.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit bf67c8d

Please sign in to comment.