Skip to content

Commit

Permalink
style: format code style
Browse files Browse the repository at this point in the history
  • Loading branch information
imtaotao committed Feb 5, 2025
1 parent cc71808 commit 2d0d1bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/danmaku/facile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { now, remove } from 'aidly';
import { now } from 'aidly';
import type { Track } from '../track';
import type { Container } from '../container';
import { createDanmakuLifeCycle } from '../lifeCycle';
Expand Down
8 changes: 6 additions & 2 deletions src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,12 @@ export class Manager<
public freeze({ preventEvents = [] }: FreezeOptions = {}) {
let stopFlag: Symbol | undefined;
let pauseFlag: Symbol | undefined;
if (preventEvents.includes('stop')) stopFlag = INTERNAL_FLAG;
if (preventEvents.includes('pause')) pauseFlag = INTERNAL_FLAG;
if (preventEvents.includes('stop')) {
stopFlag = INTERNAL_FLAG;
}
if (preventEvents.includes('pause')) {
pauseFlag = INTERNAL_FLAG;
}
this.stopPlaying(stopFlag);
this.each((dm) => dm.pause(pauseFlag));
this._internalStatuses.freeze = true;
Expand Down

0 comments on commit 2d0d1bc

Please # to comment.