typo: make code comments are in consistence with language. (#2007)

This commit is contained in:
但为君故
2024-12-05 13:32:26 +08:00
committed by GitHub
parent 2f9bd43775
commit ec001e788f
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ const streamPipeline = promisify(pipeline)
export async function downloadFile(url: string, dest: string) {
const res = await fetch(url)
// 检查响应是否成功
// Check whether it responds successfully.
if (!res.ok) {
throw new Error(`Failed to fetch ${url}: ${res.statusText}`)
}
@@ -52,7 +52,7 @@
@apply mr-5;
}
/* 撑开没有内容的行 */
/* Expand the row without content */
&::after {
content: " ";
}
@@ -103,12 +103,12 @@ export function PullToRefresh({
isRefreshing,
])
// 计算实际的下拉距离
// Calculate the actual pull-down distance
const actualPullDistance = isRefreshing
? THRESHOLD // 刷新时保持在阈值位置
? THRESHOLD // Stay at threshold position when refreshing
: pullDistance
// 计算下拉进度 (0-1)
// Calculate the pull-down progress (0-1)
const pullProgress = Math.max(Math.min(pullDistance / THRESHOLD - 0.2, 1), 0)
const SIZE = 24
const STROKE_WIDTH = 2
+1 -1
View File
@@ -72,7 +72,7 @@ export default {
category: "Possible Errors",
recommended: true,
},
fixable: "code", // 将 fixable 设置为 "code"
fixable: "code", // Set fixable to "code"
},
create(context) {
return {