Skip to content

Commit

Permalink
linted non-runner files
Browse files Browse the repository at this point in the history
missed one
  • Loading branch information
Mjaethers committed Jan 31, 2024
1 parent 0702a9d commit 204525c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/courses.go
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@ func (r coursesRoutes) regenerateCourseKey(c *gin.Context) {
}

type createCourseRequest struct {
Access string //enrolled, public, hidden or logged in
Access string // enrolled, public, hidden or logged in
CourseID string
EnChat bool
EnDL bool
Expand Down
4 changes: 2 additions & 2 deletions api/worker_grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ func (s server) SendSelfStreamRequest(ctx context.Context, request *pb.SelfStrea
return nil, err
}

if request.CourseSlug != fmt.Sprintf("%s", course.Slug) {
return nil, fmt.Errorf("bad stream name, should: %s, is: %s", fmt.Sprintf("%s", course.Slug), request.CourseSlug)
if request.CourseSlug != course.Slug {
return nil, fmt.Errorf("bad stream name, should: %s, is: %s", course.Slug, request.CourseSlug)
}

ingestServer, err := s.DaoWrapper.IngestServerDao.GetBestIngestServer()
Expand Down
2 changes: 1 addition & 1 deletion dao/streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type StreamsDao interface {

GetDueStreamsForWorkers() []model.Stream
GetDuePremieresForWorkers() []model.Stream
GetStreamByKey(ctx context.Context, key string) (stream model.Stream, err error) //deprecated
GetStreamByKey(ctx context.Context, key string) (stream model.Stream, err error) // deprecated
GetStreamByKeyAndTime(ctx context.Context, key string, time2 time.Time) (stream model.Stream, err error)
GetUnitByID(id string) (model.StreamUnit, error)
GetStreamByTumOnlineID(ctx context.Context, id uint) (stream model.Stream, err error)
Expand Down
2 changes: 0 additions & 2 deletions web/ts/edit-course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ export function lectureEditor(lecture: Lecture): AlpineComponent {
window.location.replace(`/admin/course/${lecture.courseId}`);
}
});

},

restoreKey() {
Expand All @@ -336,7 +335,6 @@ export function lectureEditor(lecture: Lecture): AlpineComponent {
window.location.replace(`/admin/course/${lecture.courseId}`);
}
});

},

/**
Expand Down

0 comments on commit 204525c

Please sign in to comment.