Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 748 for if (0.22 sec)

  1. cmd/common-main.go

    	if dir == "" {
    		dir = getDefaultDir()
    	}
    
    	if dir == "" {
    		if !dirSet {
    			return nil, fmt.Errorf("missing option must be provided")
    		}
    		return nil, fmt.Errorf("provided option cannot be empty")
    	}
    
    	// Disallow relative paths, figure out absolute paths.
    	dirAbs, err := filepath.Abs(dir)
    	if err != nil {
    		return nil, err
    	}
    	err = mkdirAllIgnorePerm(dirAbs)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 35.5K bytes
    - Viewed (2)
  2. cmd/bucket-object-lock.go

    	config, _, err := globalBucketMetadataSys.GetObjectLockConfig(bucketName)
    	if err != nil {
    		if errors.Is(err, BucketObjectLockConfigNotFound{Bucket: bucketName}) {
    			return r, nil
    		}
    		if errors.Is(err, errInvalidArgument) {
    			return r, err
    		}
    		return r, err
    	}
    	return config.ToRetention(), nil
    }
    
    // enforceRetentionForDeletion checks if it is appropriate to remove an
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Equivalence.java

      }
    
      /**
       * Returns a wrapper of {@code reference} that implements {@link Wrapper#equals(Object)
       * Object.equals()} such that {@code wrap(a).equals(wrap(b))} if and only if {@code equivalent(a,
       * b)}.
       *
       * <p>The returned object is serializable if both this {@code Equivalence} and {@code reference}
       * are serializable (including when {@code reference} is null).
       *
       * @since 10.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server.go

    	var retErr error
    	err := s.netServer.AddPodToMesh(ctx, pod, podIPs, netNs)
    	if err != nil {
    		log.Errorf("failed to add pod to ztunnel: %v", err)
    		if !errors.Is(err, ErrPartialAdd) {
    			return err
    		}
    		retErr = err
    	}
    
    	log.Debugf("annotating pod %s", pod.Name)
    	if err := util.AnnotateEnrolledPod(s.kubeClient, &pod.ObjectMeta); err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

          this.counts = new int[ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY];
        }
    
        /** Check if we need to do deduplication and coalescing, and if so, do it. */
        private void maintenance() {
          if (length == elements.length) {
            dedupAndCoalesce(true);
          } else if (forceCopyElements) {
            this.elements = Arrays.copyOf(elements, elements.length);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  6. cmd/config-current.go

    		if _, err := browser.LookupConfig(s[config.BrowserSubSys][config.Default]); err != nil {
    			return err
    		}
    	default:
    		if config.LoggerSubSystems.Contains(subSys) {
    			if err := logger.ValidateSubSysConfig(ctx, s, subSys); err != nil {
    				return err
    			}
    		}
    	}
    
    	if config.NotifySubSystems.Contains(subSys) {
    		if err := notify.TestSubSysNotificationTargets(ctx, s, subSys, NewHTTPTransport()); err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 11:33:28 GMT 2024
    - 30.7K bytes
    - Viewed (0)
  7. chainable_api.go

    	tx = db.getInstance()
    	if strings.Contains(name, " ") || strings.Contains(name, "`") || len(args) > 0 {
    		tx.Statement.TableExpr = &clause.Expr{SQL: name, Vars: args}
    		if results := tableRegexp.FindStringSubmatch(name); len(results) == 3 {
    			if results[1] != "" {
    				tx.Statement.Table = results[1]
    			} else {
    				tx.Statement.Table = results[2]
    			}
    		}
    	} else if tables := strings.Split(name, "."); len(tables) == 2 {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  8. cmd/data-scanner.go

    		}
    
    	}
    	// Compact if too many children...
    	if !into.Compacted {
    		f.newCache.reduceChildrenOf(thisHash, dataScannerCompactAtChildren, f.newCache.Info.Name != folder.name)
    	}
    	if _, ok := f.updateCache.Cache[thisHash.Key()]; !wasCompacted && ok {
    		// Replace if existed before.
    		if flat := f.newCache.sizeRecursive(thisHash.Key()); flat != nil {
    			f.updateCache.deleteRecursive(thisHash)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
  9. cmd/admin-handlers-idp-ldap.go

    		opts.claims[ldapUserN] = targetUser // simple username
    		targetUser, targetGroups, err = globalIAMSys.LDAPConfig.LookupUserDN(targetUser)
    		if err != nil {
    			// if not found, check if DN
    			if strings.Contains(err.Error(), "User DN not found for:") {
    				if isDN {
    					// warn user that DNs are not allowed
    					writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminLDAPExpectedLoginName, err), r.URL)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  10. cmd/erasure-healing.go

    		return true
    	case errors.Is(erErr, errFileCorrupt):
    		return true
    	}
    	if erErr == nil {
    		if meta.XLV1 {
    			// Legacy means heal always
    			// always check first.
    			return true
    		}
    		if !meta.Deleted && !meta.IsRemote() {
    			// If xl.meta was read fine but there may be problem with the part.N files.
    			if IsErr(dataErr, []error{
    				errFileNotFound,
    				errFileVersionNotFound,
    				errFileCorrupt,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 33.1K bytes
    - Viewed (0)
Back to top