Skip to content

Commit

Permalink
fix: nil items in sos conditions API
Browse files Browse the repository at this point in the history
  • Loading branch information
litsynp committed Feb 3, 2024
1 parent f25e7d5 commit ca94dae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/domain/sos_post/condition_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ func (service *ConditionService) FindConditions() ([]ConditionView, *pnd.AppErro
return nil, err
}

var conditionViews []ConditionView

conditionViews := make([]ConditionView, 0)
for _, v := range conditions {
conditionView := ConditionView{
ID: v.ID,
Expand Down

0 comments on commit ca94dae

Please sign in to comment.