Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksanford committed Nov 15, 2024
1 parent 705dd62 commit 84640c7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions components/movementsensor/collectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 84640c7

Please sign in to comment.