Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lint #7321

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions lib/Models/Catalog/CatalogItems/CogCatalogItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ import {
onBecomeUnobserved,
runInAction
} from "mobx";
import {
GeographicTilingScheme,
WebMercatorTilingScheme
} from "terriajs-cesium";
import GeographicTilingScheme from "terriajs-cesium/Source/Core/GeographicTilingScheme";
import CesiumMath from "terriajs-cesium/Source/Core/Math";
import WebMercatorTilingScheme from "terriajs-cesium/Source/Core/WebMercatorTilingScheme";
import type TIFFImageryProvider from "terriajs-tiff-imagery-provider";
import CatalogMemberMixin from "../../../ModelMixins/CatalogMemberMixin";
import MappableMixin, { MapItem } from "../../../ModelMixins/MappableMixin";
Expand Down Expand Up @@ -224,7 +222,7 @@ function reprojector(proj4: any) {
/**
* Returns true if the tilingScheme is custom
*/
function isCustomTilingScheme(tilingScheme: Object) {
function isCustomTilingScheme(tilingScheme: object) {
// The upstream library defines a TIFFImageryTillingScheme but it is not
// exported so we have to check if it is not one of the standard Cesium
// tiling schemes. Also, because TIFFImageryTillingScheme derives from
Expand All @@ -236,7 +234,7 @@ function isCustomTilingScheme(tilingScheme: Object) {
);
}

function omitUndefined(obj: Object) {
function omitUndefined(obj: object) {
return Object.fromEntries(
Object.entries(obj).filter(([_, value]) => value !== undefined)
);
Expand Down
Loading