Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bjtrounson committed Dec 23, 2024
1 parent a551b25 commit a3ec716
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
14 changes: 10 additions & 4 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
[default]
extend-ignore-re = [
"VALHALLA_EXTENDED_OSRM_RESPONSE.*",
]
extend-ignore-re = ["VALHALLA_EXTENDED_OSRM_RESPONSE.*"]

[default.extend-words]
rememberable = "rememberable"

[files]
extend-exclude = ["**/build/*", "*.pbxproj", "**/dist/*", "guide/**/*.js", "**/fixtures/*"]
extend-exclude = [
"**/build/*",
"*.pbxproj",
"**/dist/*",
"guide/**/*.js",
"**/fixtures/*",
"react-native/cpp/generated/*",
"react-native/src/generated/*",
]
8 changes: 4 additions & 4 deletions react-native/src/core/FerrostarCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class FerrostarCore implements LocationUpdateListener {
_navigationController?: NavigationController;
_state: NavigationState = NavigationState.instance();
_routeRequestInFlight: boolean = false;
_lastAutomaticeRecalculation?: number;
_lastAutomaticRecalculation?: number;
_lastLocation?: UserLocation;
_listeners: Map<number, (state: NavigationState) => void> = new Map();

Expand Down Expand Up @@ -295,8 +295,8 @@ export class FerrostarCore implements LocationUpdateListener {
if (RouteDeviation.OffRoute.instanceOf(newState.inner.deviation)) {
// Check that the last automatic recalculation wasn't too recent.
// We have to do some weird thing here with hrTime since JavaScript doesn't have a nice nanoseoncds method.
const isGreaterThanMinimumTime = this._lastAutomaticeRecalculation
? getNanoTime() - this._lastAutomaticeRecalculation >
const isGreaterThanMinimumTime = this._lastAutomaticRecalculation
? getNanoTime() - this._lastAutomaticRecalculation >
this.minimumTimeBeforeRecalculaton
: true;

Expand Down Expand Up @@ -348,7 +348,7 @@ export class FerrostarCore implements LocationUpdateListener {
} catch (e) {
console.log(`Failed to recalculate route: ${e}`);
} finally {
this._lastAutomaticeRecalculation = getNanoTime();
this._lastAutomaticRecalculation = getNanoTime();
this.isCalculatingNewRoute = false;
}
break;
Expand Down
2 changes: 1 addition & 1 deletion react-native/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ installer.installRustCrate();
export * from './generated/ferrostar';

// Now import the bindings so we can:
// - intialize them
// - initialize them
// - export them as namespaced objects as the default export.
import * as ferrostar from './generated/ferrostar';

Expand Down

0 comments on commit a3ec716

Please sign in to comment.