Skip to content

Commit c4490f6

Browse files
authored
fix: resolve biome formatter lint errors (#51)
- src/api.ts: collapse multi-line ternary to single line - src/locales/en.ts: break long string value onto new line - src/locales/zh.ts: break long string value onto new line
1 parent 8d413aa commit c4490f6

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ export async function uploadFile(fn: string, key?: string) {
262262
});
263263
} catch (error) {
264264
if (isProxyRelatedError(error)) {
265-
const rawMessage =
266-
error instanceof Error ? error.message : String(error);
265+
const rawMessage = error instanceof Error ? error.message : String(error);
267266
throw new Error(
268267
`${rawMessage}\n\n${t('proxyNetworkError')}\n${t('proxyNetworkErrorTips')}`,
269268
);

src/locales/en.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,6 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
184184
apkExtracted: 'APK extracted to {{output}}',
185185
proxyNetworkError:
186186
'Network error — likely caused by a proxy/VPN. Please try disabling your proxy and retry.',
187-
proxyNetworkErrorTips: 'Common fixes:\n1. Disable system proxy or VPN\n2. Check HTTP_PROXY / HTTPS_PROXY environment variables\n3. Check proxy settings in .npmrc',
187+
proxyNetworkErrorTips:
188+
'Common fixes:\n1. Disable system proxy or VPN\n2. Check HTTP_PROXY / HTTPS_PROXY environment variables\n3. Check proxy settings in .npmrc',
188189
};

src/locales/zh.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,6 @@ export default {
170170
apkExtracted: 'APK 已提取到 {{output}}',
171171
proxyNetworkError:
172172
'网络连接异常,可能是代理/VPN 导致。请尝试关闭代理后重试。',
173-
proxyNetworkErrorTips: '常见解决方法:\n1. 关闭系统代理或 VPN\n2. 检查 HTTP_PROXY / HTTPS_PROXY 环境变量\n3. 检查 .npmrc 中的 proxy 配置',
173+
proxyNetworkErrorTips:
174+
'常见解决方法:\n1. 关闭系统代理或 VPN\n2. 检查 HTTP_PROXY / HTTPS_PROXY 环境变量\n3. 检查 .npmrc 中的 proxy 配置',
174175
};

0 commit comments

Comments
 (0)