mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
Fix typo maxDeepth -> maxDepth (#15574)
Signed-off-by: Junyoung, Sung <junyoung.sung@naverlabs.com>
This commit is contained in:
parent
8e1ffd022c
commit
251feea1fd
@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
const maxDeepth = 50
|
||||
const maxDepth = 50
|
||||
|
||||
type stack []uintptr
|
||||
|
||||
@ -28,7 +28,7 @@ func (s *stack) frames() StackFrames {
|
||||
|
||||
// newStack ...
|
||||
func newStack() *stack {
|
||||
var pcs [maxDeepth]uintptr
|
||||
var pcs [maxDepth]uintptr
|
||||
n := runtime.Callers(3, pcs[:])
|
||||
var st stack = pcs[0:n]
|
||||
return &st
|
||||
|
Loading…
Reference in New Issue
Block a user