Skip to content

Commit 36a6e05

Browse files
gabyxCopilot
andcommitted
Update pkg/common/stack/stack.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent aa8cc6d commit 36a6e05

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

pkg/common/stack/stack.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ func (s *Stack[T]) Top() T {
3838
return s.stack[len(s.stack)-1]
3939
}
4040

41-
// PopFront pops the bottom level on the stack.
42-
// This method is useful to do Breath-First-Traversal.
43-
// instead of Depth-First-Traversal when using `Pop`.
41+
// PopBottom pops the bottom level on the stack.
42+
// This method is useful to do Breadth-First Traversal
43+
// instead of Depth-First Traversal when using `Pop`.
4444
func (s *Stack[T]) PopBottom() T {
4545
res := s.Bottom()
4646
s.stack = s.stack[1:]

pkg/dag/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (s RunnerStatuses) log() {
8888
func (s *Summary) Log() {
8989
s.statuses.log()
9090

91-
// Add the sentinell error, for later dropping.
91+
// Add the sentinel error, for later dropping.
9292
if s.allErrors != nil {
9393
s.allErrors = errorsfilter.WrapAsReported(s.allErrors)
9494
}

pkg/errors/filter/already-reported.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ import (
66
"github.com/sdsc-ordes/quitsh/pkg/log"
77
)
88

9-
// alreadyReportedErr is an wrapping error which can be dropped by `DropReported`.
10-
type alreadyReportedErr struct {
9+
// alreadyReportedError is an wrapping error which can be dropped by `DropReported`.
10+
type alreadyReportedError struct {
1111
e error
1212
}
1313

14-
func (e *alreadyReportedErr) Error() string {
14+
func (e *alreadyReportedError) Error() string {
1515
return e.e.Error()
1616
}
1717

18-
func (e *alreadyReportedErr) Unwrap() error {
18+
func (e *alreadyReportedError) Unwrap() error {
1919
return e.e
2020
}
2121

22-
// WrapAsReported returns a new wrapped errors which indicates
22+
// WrapAsReported returns a new wrapped error which indicates
2323
// that it is already reported.
24-
// Useful for bigger errors, which you want to propagate upwards but
25-
// maybe ignore in logging with [FilterAlreadyReported].
24+
// Useful for bigger errors, which you still want to propagate upwards but
25+
// maybe ignore in logging then with [FilterAlreadyReported].
2626
func WrapAsReported(e error) error {
27-
return &alreadyReportedErr{e: e}
27+
return &alreadyReportedError{e: e}
2828
}
2929

3030
// FilterAlreadyReported filters `ErrAlreadyReported` from the chain.
@@ -56,7 +56,7 @@ func FilterAlreadyReported(err error) error {
5656
// Backtracking
5757
// Reconstruct errors.
5858
ignore := false
59-
if _, ok := node.e.(*alreadyReportedErr); ok { //nolint:errorlint // This is ok.
59+
if _, ok := node.e.(*alreadyReportedError); ok { //nolint:errorlint // This is ok.
6060
ignore = true
6161
}
6262

0 commit comments

Comments
 (0)