Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for fixErr (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. .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)
  5. 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)
  6. 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)
Back to top