Skip to content

Commit

Permalink
chore: fix new golangci-lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbee committed Sep 10, 2024
1 parent 1142615 commit cf4665c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/mp4ff-pslister/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func printPS(name string, nr int, ps []byte, psInfo interface{}, verbose bool) {
if verbose && psInfo != nil {
jsonPS, err := json.MarshalIndent(psInfo, "", " ")
if err != nil {
log.Fatalf(err.Error())
log.Fatalln(err.Error())
}
fmt.Printf("%s\n", string(jsonPS))
}
Expand Down
2 changes: 1 addition & 1 deletion mp4/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestDecodeFileWithNoLazyMdatOption(t *testing.T) {
if frag.Mdat.lazyDataSize != 0 {
t.Error("decLazyDataSize is expected to be 0")
}
if frag.Mdat.Data == nil || len(frag.Mdat.Data) == 0 {
if len(frag.Mdat.Data) == 0 {
t.Error("Mdat Data is expected to be non-nil")
}
}
Expand Down
2 changes: 1 addition & 1 deletion mp4/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func assertNoError(t *testing.T, err error) {
func assertError(t *testing.T, err error, msg string) {
t.Helper()
if err == nil {
t.Errorf(msg)
t.Error(msg)
}
}

Expand Down
2 changes: 1 addition & 1 deletion mp4/pssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestPsshFromBase64(t *testing.T) {
d := deep.Equal(buf.String(), expected)
if len(d) > 0 {
for _, l := range d {
t.Errorf(l)
t.Error(l)
}
}
}
Expand Down

0 comments on commit cf4665c

Please sign in to comment.