Skip to content

Commit

Permalink
cleanup: correct typo in NewCSIVolumeroupJournal() function
Browse files Browse the repository at this point in the history
The name of the function should be `NewCSIVolumeGroupJournal()`.

Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic authored and mergify[bot] committed Mar 15, 2024
1 parent 4f04748 commit c32dfc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/journal/volumegroupjournal.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ type volumeGroupJournalConfig struct {
*Connection
}

// NewCSIVolumeroupJournal returns an instance of VolumeGroupJournal for groups.
func NewCSIVolumeroupJournal(suffix string) VolumeGroupJournal {
// NewCSIVolumeGroupJournal returns an instance of VolumeGroupJournal for groups.
func NewCSIVolumeGroupJournal(suffix string) VolumeGroupJournal {
return &volumeGroupJournalConfig{
Config: &Config{
csiDirectory: "csi.groups." + suffix,
Expand All @@ -105,7 +105,7 @@ func (sgj *volumeGroupJournalConfig) SetNamespace(ns string) {
// NewCSIVolumeGroupJournalWithNamespace returns an instance of VolumeGroupJournal for
// volume groups using a predetermined namespace value.
func NewCSIVolumeGroupJournalWithNamespace(suffix, ns string) VolumeGroupJournal {
j := NewCSIVolumeroupJournal(suffix)
j := NewCSIVolumeGroupJournal(suffix)
j.SetNamespace(ns)

return j
Expand Down

0 comments on commit c32dfc0

Please sign in to comment.