- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for fixErr (0.17 sec)
-
src/io/fs/sub.go
} if len(name) >= len(f.dir)+2 && name[len(f.dir)] == '/' && name[:len(f.dir)] == f.dir { return name[len(f.dir)+1:], true } return "", false } // fixErr shortens any reported names in PathErrors by stripping f.dir. func (f *subFS) fixErr(err error) error { if e, ok := err.(*PathError); ok { if short, ok := f.shorten(e.Path); ok { e.Path = short } } return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 10 02:10:17 UTC 2024 - 3.6K bytes - Viewed (0) -
src/net/ipsock_plan9.go
if err != nil { return } var buf [16]byte n, err := f.Read(buf[:]) if err != nil { f.Close() return } return f, dest, proto, string(buf[:n]), nil } func fixErr(err error) { oe, ok := err.(*OpError) if !ok { return } nonNilInterface := func(a Addr) bool { switch a := a.(type) { case *TCPAddr: return a == nil case *UDPAddr:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 20:38:53 UTC 2023 - 7.5K bytes - Viewed (0) -
pkg/scheduler/schedule_one.go
return false, nil } func (sched *Scheduler) finishBinding(logger klog.Logger, fwk framework.Framework, assumed *v1.Pod, targetNode string, status *framework.Status) { if finErr := sched.Cache.FinishBinding(logger, assumed); finErr != nil { logger.Error(finErr, "Scheduler cache FinishBinding failed") } if !status.IsSuccess() { logger.V(1).Info("Failed to bind pod", "pod", klog.KObj(assumed)) return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 13:28:08 UTC 2024 - 43.4K bytes - Viewed (0) -
src/cmd/fix/main.go
} if fix.f(newFile) { fixed = true fmt.Fprintf(&fixlog, " %s", fix.name) // AST changed. // Print and parse, to update any missing scoping // or position information for subsequent fixers. newSrc, err := gofmtFile(newFile) if err != nil { return err } newFile, err = parser.ParseFile(fset, filename, newSrc, parserMode) if err != nil { if debug {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.4K bytes - Viewed (0) -
.pre-commit-config.yaml
rev: v4.4.0 hooks: - id: check-added-large-files - id: check-toml - id: check-yaml args: - --unsafe - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/charliermarsh/ruff-pre-commit rev: v0.2.0 hooks: - id: ruff args: - --fix - id: ruff-format ci:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 737 bytes - Viewed (0) -
src/os/exec/lp_windows.go
// // Otherwise, return the ErrDot for the implicit path as soon as we find // out that the explicit one doesn't match. dotfi, dotfiErr := os.Lstat(dotf) fi, fiErr := os.Lstat(f) if dotfiErr != nil || fiErr != nil || !os.SameFile(dotfi, fi) { return dotf, dotErr } } if !filepath.IsAbs(f) { if execerrdot.Value() != "0" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 6K bytes - Viewed (0) -
src/debug/dwarf/type.go
// because it may need to resolve cycles in a different order than // readType encounters them. if fixups == nil { var fixer typeFixer defer func() { fixer.apply() }() fixups = &fixer } // Parse type from Entry. // Must always set typeCache[off] before calling // d.readType recursively, to handle circular types correctly. var typ Type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 21.9K bytes - Viewed (0) -
pkg/scheduler/schedule_one_test.go
t.Errorf("Expected err to be FitError: %v, but got %v (error: %v)", wantOK, gotOK, err) } else if gotOK { if diff := cmp.Diff(wantFitErr, gotFitErr); diff != "" { t.Errorf("Unexpected fitErr: (-want, +got): %s", diff) } } } if test.wantNodes != nil && !test.wantNodes.Has(result.SuggestedHost) { t.Errorf("Expected: %s, got: %s", test.wantNodes, result.SuggestedHost) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:20:55 UTC 2024 - 128.1K bytes - Viewed (0)