Skip to content

Commit

Permalink
lint: Skip a lint error that can't be fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioabreu committed Apr 23, 2024
1 parent 5e01d2a commit 9fca947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (handler *inputHandler) GetInput(ctx context.Context, id uuid.UUID) (Input,
in, err := handler.store.GetInput(ctx, id)

audioProfiles := make([]AudioProfile, len(in.AudioProfiles))
for i, audio := range in.AudioProfiles {
for i, audio := range in.AudioProfiles { //nolint: gocritic // Can't use pointers in models
audioProfiles[i] = AudioProfile{
InputID: in.ID,
Codec: audio.Codec,
Expand All @@ -108,7 +108,7 @@ func (handler *inputHandler) GetInput(ctx context.Context, id uuid.UUID) (Input,
}

videoProfiles := make([]VideoProfile, len(in.VideoProfiles))
for i, video := range in.VideoProfiles {
for i, video := range in.VideoProfiles { //nolint: gocritic // Can't use pointers in models
videoProfiles[i] = VideoProfile{
InputID: in.ID,
Codec: video.Codec,
Expand Down

0 comments on commit 9fca947

Please sign in to comment.