Skip to content

Commit 7732666

Browse files
committed
remove useless code
1 parent 8721dbd commit 7732666

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/MapboxNavigation/NavigationMapView.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,7 @@ open class NavigationMapView: UIView {
340340
mapView.mapboxMap.onEvery(.renderFrameFinished) { [weak self] _ in
341341
guard let self = self,
342342
let location = self.mostRecentUserCourseViewLocation else { return }
343-
switch self.userLocationStyle {
344-
case .courseView: self.moveUserLocation(to: location)
345-
default: break
346-
}
343+
self.moveUserLocation(to: location)
347344

348345
if self.simulatesLocation {
349346
if let locationProvider = self.mapView.location.locationProvider {

0 commit comments

Comments
 (0)