diff --git a/go/go.work b/go/go.work index d533c6b8d1..7199ebcd1a 100644 --- a/go/go.work +++ b/go/go.work @@ -1,6 +1,4 @@ -go 1.21 - -toolchain go1.21.0 +go 1.18 use ( ./cli/mcap diff --git a/go/ros/bag2mcap.go b/go/ros/bag2mcap.go index cff812b279..6bbbf599a7 100644 --- a/go/ros/bag2mcap.go +++ b/go/ros/bag2mcap.go @@ -173,10 +173,6 @@ func processBag( } } - if err != nil { - return err - } - switch opcode[0] { case OpBagHeader: continue diff --git a/go/ros/ros2db3_to_mcap.go b/go/ros/ros2db3_to_mcap.go index 3bb4eade14..d03c5fe48c 100644 --- a/go/ros/ros2db3_to_mcap.go +++ b/go/ros/ros2db3_to_mcap.go @@ -319,10 +319,6 @@ func DB3ToMCAP(w io.Writer, if err != nil { return fmt.Errorf("failed to write channel info: %w", err) } - - if err != nil { - return fmt.Errorf("failed to increment progress bar: %w", err) - } } seq := make(map[uint16]uint32) err = transformMessages(db, func(rows *sql.Rows) error { diff --git a/testdata/db3/chatter.mcap b/testdata/db3/chatter.mcap deleted file mode 100644 index 575a996b77..0000000000 --- a/testdata/db3/chatter.mcap +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:80d78a9fb3637e467e2c65abc3a6fcf0e7d9e9a20d6a4134356789f8fb8a5d7b -size 1738