diff --git a/components/movementsensor/collectors.go b/components/movementsensor/collectors.go index af5f2bef551..5d4e814d169 100644 --- a/components/movementsensor/collectors.go +++ b/components/movementsensor/collectors.go @@ -53,7 +53,7 @@ func assertMovementSensor(resource interface{}) (MovementSensor, error) { return ms, nil } -//nolint: dupl +//nolint:dupl func newLinearVelocityCollector(resource interface{}, params data.CollectorParams) (data.Collector, error) { ms, err := assertMovementSensor(resource) if err != nil { @@ -117,7 +117,7 @@ func newPositionCollector(resource interface{}, params data.CollectorParams) (da return data.NewCollector(cFunc, params) } -//nolint: dupl +//nolint:dupl func newAngularVelocityCollector(resource interface{}, params data.CollectorParams) (data.Collector, error) { ms, err := assertMovementSensor(resource) if err != nil { @@ -172,7 +172,7 @@ func newCompassHeadingCollector(resource interface{}, params data.CollectorParam return data.NewCollector(cFunc, params) } -//nolint: dupl +//nolint:dupl func newLinearAccelerationCollector(resource interface{}, params data.CollectorParams) (data.Collector, error) { ms, err := assertMovementSensor(resource) if err != nil { @@ -202,8 +202,6 @@ func newLinearAccelerationCollector(resource interface{}, params data.CollectorP return data.NewCollector(cFunc, params) } -// newOrientationCollector returns a collector to register an orientation method. If one is already registered -// with the same MethodMetadata it will panic. func newOrientationCollector(resource interface{}, params data.CollectorParams) (data.Collector, error) { ms, err := assertMovementSensor(resource) if err != nil {