Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed May 15, 2024
1 parent f58187d commit 12a7f9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/AssetPack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class AssetPack
{
if (asset.state === 'deleted')
{
deleteAsset(asset);
deleteAssetFiles(asset);
}
else
{
Expand All @@ -218,7 +218,7 @@ export class AssetPack
}
}

export async function deleteAsset(asset: Asset)
export async function deleteAssetFiles(asset: Asset)
{
asset.transformChildren.forEach((child) =>
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/AssetWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import chokidar from 'chokidar';
import fs from 'fs-extra';
import { Asset } from './Asset.js';
import { AssetIgnore } from './AssetIgnore.js';
import { deleteAsset } from './AssetPack.js';
import { deleteAssetFiles } from './AssetPack.js';
import { Logger } from './logger/Logger.js';
import { applySettingToAsset } from './utils/applySettingToAsset.js';
import { path } from './utils/path.js';
Expand Down Expand Up @@ -223,7 +223,7 @@ export class AssetWatcher
else if (asset.state === 'normal')
{
asset.state = 'modified';
deleteAsset(asset);
deleteAssetFiles(asset);
}

// flag all folders as modified..
Expand Down

0 comments on commit 12a7f9e

Please sign in to comment.