Skip to content

Commit

Permalink
[IGNORE] fix linting issue
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay Iyyadurai Balasundaram <[email protected]>
  • Loading branch information
ibakshay committed Nov 27, 2024
1 parent 4e2fa72 commit bd49846
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 32 deletions.
19 changes: 9 additions & 10 deletions api/v1alpha1/perses_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ type PersesConfig struct {
config.Config `json:",inline"`
}


func (in *PersesConfig) DeepCopyInto(out *PersesConfig) {
if in == nil {
return
}
copied, err := deep.Copy(in)
if err != nil {
panic(fmt.Errorf("failed to deep copy PersesConfig: %w", err))
}
*out = *copied
if in == nil {
return
}

copied, err := deep.Copy(in)
if err != nil {
panic(fmt.Errorf("failed to deep copy PersesConfig: %w", err))
}
*out = *copied
}
22 changes: 9 additions & 13 deletions api/v1alpha1/perses_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ type Dashboard struct {
persesv1.DashboardSpec `json:",inline"`
}



func (in *Dashboard) DeepCopyInto(out *Dashboard) {
if in == nil {
return
}
copied, err := deep.Copy(in)
if err != nil {
panic(fmt.Errorf("failed to deep copy Dashboard: %w", err))
}
*out = *copied
if in == nil {
return
}

copied, err := deep.Copy(in)
if err != nil {
panic(fmt.Errorf("failed to deep copy Dashboard: %w", err))
}
*out = *copied
}


18 changes: 9 additions & 9 deletions api/v1alpha1/perses_datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ type Datasource struct {
}

func (in *Datasource) DeepCopyInto(out *Datasource) {
if in == nil {
return
}
copied, err := deep.Copy(in)
if err != nil {
panic(fmt.Errorf("failed to deep copy Datasource: %w", err))
}
*out = *copied
if in == nil {
return
}

copied, err := deep.Copy(in)
if err != nil {
panic(fmt.Errorf("failed to deep copy Datasource: %w", err))
}
*out = *copied
}

0 comments on commit bd49846

Please sign in to comment.