Skip to content

Commit

Permalink
chore: remove useless space
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal committed Mar 4, 2024
1 parent b0ed856 commit 552a1d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/electron/services.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clc from 'cli-color';
import checkAuthToken from "../utils/checkAuthToken"
import checkAuthToken from '../utils/checkAuthToken';
import server from 'NeteaseCloudMusicApi/server';

export async function startNeteaseMusicApi() {
Expand Down
10 changes: 5 additions & 5 deletions src/utils/checkAuthToken.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os from 'os'
import fs from "fs"
import path from 'path'
import os from 'os';
import fs from 'fs';
import path from 'path';

// extract from NeteasyCloudMusicAPI/generateConfig.js and avoid bugs in there (generateConfig require main.js but the main.js has bugs)
if (!fs.existsSync(path.resolve(os.tmpdir(), 'anonymous_token'))) {
fs.writeFileSync(path.resolve(os.tmpdir(), 'anonymous_token'), '', 'utf-8')
}
fs.writeFileSync(path.resolve(os.tmpdir(), 'anonymous_token'), '', 'utf-8');
}

0 comments on commit 552a1d4

Please sign in to comment.