Skip to content

Commit

Permalink
Merge pull request #7321 from TerriaJS/fix-lint
Browse files Browse the repository at this point in the history
Fix lint
  • Loading branch information
na9da authored Nov 21, 2024
2 parents dd8b882 + 9eeb6d1 commit cf60c17
Showing 1 changed file with 4 additions and 6 deletions.
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

0 comments on commit cf60c17

Please sign in to comment.