Skip to content

Commit

Permalink
Update code to be more Go idiomatic
Browse files Browse the repository at this point in the history
No functional changes
  • Loading branch information
mr-shitij authored and Sean-Der committed Nov 1, 2022
1 parent c132bed commit 789623a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Michiel De Backker <[email protected]>
Mike Coleman <[email protected]>
Mindgamesnl <[email protected]>
mission-liao <[email protected]>
mr-shitij <[email protected]>
mxmCherry <[email protected]>
Nam V. Do <[email protected]>
Nick Mykins <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions icegatherer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func TestNewICEGatherer_Success(t *testing.T) {
t.Error(err)
}

if len(params.UsernameFragment) == 0 ||
len(params.Password) == 0 {
if params.UsernameFragment == "" ||
params.Password == "" {
t.Fatalf("Empty local username or password frag")
}

Expand Down
3 changes: 1 addition & 2 deletions pkg/media/h264reader/h264reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ func (reader *H264Reader) NextNAL() (*NAL, error) {
if nal.UnitType == NalUnitTypeSEI {
reader.nalBuffer = nil
continue
} else {
break
}
break
}

reader.nalBuffer = append(reader.nalBuffer, readByte)
Expand Down

0 comments on commit 789623a

Please sign in to comment.