Skip to content

Commit

Permalink
fix: lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Oct 26, 2024
1 parent 92673b0 commit 6d27c74
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/project/config_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ func NewSyncApplyers(cfg *shop.Config) []ConfigSyncApplyer {
}

for _, sync := range *enabled {
if sync == shop.SyncOptionSystemConfig {
switch sync {
case shop.SyncOptionSystemConfig:
syncApplyers = append(syncApplyers, &SystemConfigSync{})
} else if sync == shop.SyncOptionTheme {
case shop.SyncOptionTheme:
syncApplyers = append(syncApplyers, &ThemeSync{})
} else if sync == shop.SyncOptionMailTemplate {
case shop.SyncOptionMailTemplate:
syncApplyers = append(syncApplyers, &MailTemplateSync{})
} else if sync == shop.SyncOptionEntity {
case shop.SyncOptionEntity:
syncApplyers = append(syncApplyers, &EntitySync{})
}
}
Expand Down

0 comments on commit 6d27c74

Please sign in to comment.