Skip to content

Commit

Permalink
removed unnecessary variable assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
karjo24 committed Oct 10, 2024
1 parent cae868b commit af18af5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tools/meiliExporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ func ToMeiliStreams(streams []model.Stream, daoWrapper dao.DaoWrapper) ([]MeiliS
if err != nil {
return nil, err
}
courseName := c.Name
year := c.Year
teachingTerm := c.TeachingTerm
visibility := c.Visibility
var private uint
if s.Private {
private = 1
Expand All @@ -228,12 +224,12 @@ func ToMeiliStreams(streams []model.Stream, daoWrapper dao.DaoWrapper) ([]MeiliS
ID: s.ID,
Name: s.Name,
Description: s.Description,
CourseName: courseName,
Year: year,
TeachingTerm: teachingTerm,
CourseName: c.Name,
Year: c.Year,
TeachingTerm: c.TeachingTerm,
CourseID: s.CourseID,
Private: private,
Visibility: visibility,
Visibility: c.Visibility,
}
}
return res, nil
Expand Down

0 comments on commit af18af5

Please sign in to comment.