Skip to content

Commit 69e7d7e

Browse files
authored
Merge branch 'master' into feature/converstion-algorithms
2 parents 651e77a + 8c8abd9 commit 69e7d7e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
go-version: '^1.18'
2323
- name: Run Golang CI Lint
24-
uses: golangci/golangci-lint-action@v3
24+
uses: golangci/golangci-lint-action@v6
2525
with:
2626
version: latest
2727
args: -E gofmt

.github/workflows/citk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
- name: Setup Go
17-
uses: actions/setup-go@v3
17+
uses: actions/setup-go@v5
1818
with:
1919
go-version: "^1.18"
2020
- name: Checkout branch

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
stale:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/stale@v4
9+
- uses: actions/stale@v9
1010
with:
1111
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
1212
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'

.github/workflows/upload_coverage_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
go test -coverprofile="${{ env.REPORT_NAME }}" ./...
2626
- name: Upload coverage to codecov (tokenless)
2727
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
28-
uses: codecov/codecov-action@v4
28+
uses: codecov/codecov-action@v5
2929
with:
3030
files: "${{ env.REPORT_NAME }}"
3131
fail_ci_if_error: true
3232
- name: Upload coverage to codecov (with token)
3333
if: "! github.event.pull_request.head.repo.fork "
34-
uses: codecov/codecov-action@v4
34+
uses: codecov/codecov-action@v5
3535
with:
3636
token: ${{ secrets.CODECOV_TOKEN }}
3737
files: "${{ env.REPORT_NAME }}"

structure/linkedlist/singlylinkedlist.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ func (ll *Singly[T]) Count() int {
125125

126126
// Reverse reverses the list.
127127
func (ll *Singly[T]) Reverse() {
128-
var prev, Next *Node[T]
128+
var prev, next *Node[T]
129129
cur := ll.Head
130130

131131
for cur != nil {
132-
Next = cur.Next
132+
next = cur.Next
133133
cur.Next = prev
134134
prev = cur
135-
cur = Next
135+
cur = next
136136
}
137137

138138
ll.Head = prev

0 commit comments

Comments
 (0)