Skip to content

Commit

Permalink
#81 fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-dammeier committed Oct 7, 2024
1 parent 077c111 commit 0c71dd4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions pkg/adapter/kubernetes/blueprintcr/v1/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type presentAbsentConfig struct {

func ConvertToConfigDTO(config domain.Config) Config {
var dogus map[string]CombinedDoguConfig
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Dogus) != 0 {
dogus = make(map[string]CombinedDoguConfig, len(config.Dogus))
Expand All @@ -46,7 +46,7 @@ func ConvertToConfigDTO(config domain.Config) Config {

func ConvertToConfigDomain(config Config) domain.Config {
var dogus map[common.SimpleDoguName]domain.CombinedDoguConfig
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Dogus) != 0 {
dogus = make(map[common.SimpleDoguName]domain.CombinedDoguConfig, len(config.Dogus))
Expand Down Expand Up @@ -78,7 +78,7 @@ func convertToCombinedDoguConfigDomain(doguName string, config CombinedDoguConfi

func convertToDoguConfigDTO(config domain.DoguConfig) DoguConfig {
var present map[string]string
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Present) != 0 {
present = make(map[string]string, len(config.Present))
Expand All @@ -88,7 +88,7 @@ func convertToDoguConfigDTO(config domain.DoguConfig) DoguConfig {
}

var absent []string
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Absent) != 0 {
absent = make([]string, len(config.Absent))
Expand All @@ -105,7 +105,7 @@ func convertToDoguConfigDTO(config domain.DoguConfig) DoguConfig {

func convertToDoguConfigDomain(doguName string, config DoguConfig) domain.DoguConfig {
var present map[common.DoguConfigKey]common.DoguConfigValue
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Present) != 0 {
present = make(map[common.DoguConfigKey]common.DoguConfigValue, len(config.Present))
Expand All @@ -115,7 +115,7 @@ func convertToDoguConfigDomain(doguName string, config DoguConfig) domain.DoguCo
}

var absent []common.DoguConfigKey
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Absent) != 0 {
absent = make([]common.DoguConfigKey, len(config.Absent))
Expand All @@ -139,7 +139,7 @@ func convertToDoguConfigKeyDomain(doguName, key string) common.DoguConfigKey {

func convertToSensitiveDoguConfigDTO(config domain.SensitiveDoguConfig) SensitiveDoguConfig {
var present map[string]string
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Present) != 0 {
present = make(map[string]string, len(config.Present))
Expand All @@ -149,7 +149,7 @@ func convertToSensitiveDoguConfigDTO(config domain.SensitiveDoguConfig) Sensitiv
}

var absent []string
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Absent) != 0 {
absent = make([]string, len(config.Absent))
Expand All @@ -166,7 +166,7 @@ func convertToSensitiveDoguConfigDTO(config domain.SensitiveDoguConfig) Sensitiv

func convertToSensitiveDoguConfigDomain(doguName string, config SensitiveDoguConfig) domain.SensitiveDoguConfig {
var present map[common.SensitiveDoguConfigKey]common.SensitiveDoguConfigValue
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Present) != 0 {
present = make(map[common.SensitiveDoguConfigKey]common.SensitiveDoguConfigValue, len(config.Present))
Expand All @@ -176,7 +176,7 @@ func convertToSensitiveDoguConfigDomain(doguName string, config SensitiveDoguCon
}

var absent []common.SensitiveDoguConfigKey
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Absent) != 0 {
absent = make([]common.SensitiveDoguConfigKey, len(config.Absent))
Expand All @@ -201,7 +201,7 @@ func convertToSensitiveDoguConfigKeyDomain(doguName, key string) common.Sensitiv

func convertToGlobalConfigDTO(config domain.GlobalConfig) GlobalConfig {
var present map[string]string
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Present) != 0 {
present = make(map[string]string, len(config.Present))
Expand All @@ -211,7 +211,7 @@ func convertToGlobalConfigDTO(config domain.GlobalConfig) GlobalConfig {
}

var absent []string
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Absent) != 0 {
absent = make([]string, len(config.Absent))
Expand All @@ -228,7 +228,7 @@ func convertToGlobalConfigDTO(config domain.GlobalConfig) GlobalConfig {

func convertToGlobalConfigDomain(config GlobalConfig) domain.GlobalConfig {
var present map[common.GlobalConfigKey]common.GlobalConfigValue
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Present) != 0 {
present = make(map[common.GlobalConfigKey]common.GlobalConfigValue, len(config.Present))
Expand All @@ -238,7 +238,7 @@ func convertToGlobalConfigDomain(config GlobalConfig) domain.GlobalConfig {
}

var absent []common.GlobalConfigKey
// we check for emtpy values to make good use of default values
// we check for empty values to make good use of default values
// this makes testing easier
if len(config.Absent) != 0 {
absent = make([]common.GlobalConfigKey, len(config.Absent))
Expand Down

0 comments on commit 0c71dd4

Please sign in to comment.