Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed Dec 10, 2024
1 parent c8d2937 commit 6bfa73b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set timezone
uses: szenius/[email protected]
with:
timezoneLinux: "Asia/Shanghai"

- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion filesystem/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NormalizeRelativePath(path string) string {
for _, part := range paths {
if part == ".." && len(parts) > 0 {
parts = parts[1:]
} else if part != "" || part != "."{
} else if part != "" && part != "." {
parts = append(parts, part)
}
}
Expand Down

0 comments on commit 6bfa73b

Please sign in to comment.