Freighter
This commit is contained in:
@@ -5,6 +5,7 @@ const getSimBriefFlightPlan = async (simBriefUsername: string) => {
|
||||
try {
|
||||
response = await fetch(flightPlanURL);
|
||||
success = true;
|
||||
//eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} catch (e: any) {
|
||||
response = e.response;
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ export const unloadAircraft = () => {
|
||||
};
|
||||
|
||||
export const inRangeOf = (value: number, target: number, tolerance: number = 10) => {
|
||||
return Math.abs(value - target) < 10;
|
||||
return Math.abs(value - target) < tolerance;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user