Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 4,908 for if (0.14 sec)

  1. internal/s3select/json/record.go

    	var v interface{}
    	if b, ok := value.ToBool(); ok {
    		v = b
    	} else if f, ok := value.ToFloat(); ok {
    		v = f
    	} else if i, ok := value.ToInt(); ok {
    		v = i
    	} else if t, ok := value.ToTimestamp(); ok {
    		v = sql.FormatSQLTimestamp(t)
    	} else if s, ok := value.ToString(); ok {
    		v = s
    	} else if value.IsNull() {
    		v = nil
    	} else if value.IsMissing() {
    		return r, nil
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  2. internal/handlers/forwarder.go

    func (f *Forwarder) getURLFromRequest(req *http.Request) *url.URL {
    	// If the Request was created by Go via a real HTTP request,  RequestURI will
    	// contain the original query string. If the Request was created in code, RequestURI
    	// will be empty, and we will use the URL object instead
    	u := req.URL
    	if req.RequestURI != "" {
    		parsedURL, err := url.ParseRequestURI(req.RequestURI)
    		if err == nil {
    			u = parsedURL
    		}
    	}
    	return u
    }
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 07 05:42:10 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

        url: HttpUrl,
        proxy: Proxy?,
      ) {
        fun selectProxies(): List<Proxy> {
          // If the user specifies a proxy, try that and only that.
          if (proxy != null) return listOf(proxy)
    
          // If the URI lacks a host (as in "http://</"), don't call the ProxySelector.
          val uri = url.toUri()
          if (uri.host == null) return immutableListOf(Proxy.NO_PROXY)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/collect/ImmutableSetHashFloodingDetectionBenchmark.java

              if (hashTable[endOfStartRun] == null) {
                break;
              }
              endOfStartRun++;
              if (endOfStartRun > maxRunBeforeFallback) {
                return true;
              }
            }
            int startOfEndRun;
            for (startOfEndRun = hashTable.length - 1; startOfEndRun > endOfStartRun; startOfEndRun--) {
              if (hashTable[startOfEndRun] == null) {
                break;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jun 03 20:16:35 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/cgotest/overlaydir.go

    		perm := info.Mode() & os.ModePerm
    		if info.Mode()&os.ModeSymlink != 0 {
    			info, err = os.Stat(srcPath)
    			if err != nil {
    				return err
    			}
    			perm = info.Mode() & os.ModePerm
    		}
    
    		// Always copy directories (don't symlink them).
    		// If we add a file in the overlay, we don't want to add it in the original.
    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon May 22 20:56:09 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  6. internal/bucket/replication/replication.go

    		if _, ok := targetMap[r.Destination.Bucket]; !ok {
    			targetMap[r.Destination.Bucket] = struct{}{}
    		}
    		if err := r.Validate(bucket, sameTarget); err != nil {
    			return err
    		}
    		if _, ok := priorityMap[strconv.Itoa(r.Priority)]; ok {
    			return errReplicationUniquePriority
    		}
    		priorityMap[strconv.Itoa(r.Priority)] = struct{}{}
    
    		if r.Destination.LegacyArn() {
    			legacyArn = true
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  7. cmd/warm-backend-gcs.go

    	_, err := pager.NextPage(&gcsObjects)
    	if err != nil {
    		return false, gcsToObjectError(err, gcs.Bucket, gcs.Prefix)
    	}
    	if len(gcsObjects) > 0 {
    		return true, nil
    	}
    	return false, nil
    }
    
    func newWarmBackendGCS(conf madmin.TierGCS, tier string) (*warmBackendGCS, error) {
    	// Validation code
    	if conf.Creds == "" {
    		return nil, errors.New("empty credentials unsupported")
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. cmd/data-scanner-metric.go

    		// We are a bit paranoid, but better miss an entry than crash.
    		name, ok := key.(string)
    		if !ok {
    			return true
    		}
    		obj, ok := value.(*currentPathTracker)
    		if !ok {
    			return true
    		}
    		strptr := (*string)(atomic.LoadPointer(obj.name))
    		if strptr != nil {
    			res = append(res, pathJoin(prefix, name, *strptr))
    		}
    		return true
    	})
    	return res
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 25 05:15:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  9. cmd/bucket-notification-handlers.go

    	if err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
    		if event.IsEventError(err) {
    			apiErr = toAPIError(ctx, err)
    		}
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    
    	configData, err := xml.Marshal(config)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  10. .teamcity/mvnw.cmd

    @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
    @if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
    
    @REM set %HOME% to equivalent of $HOME
    if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
    
    @REM Execute a user defined script before this one
    if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
    @REM check for pre script, once with legacy .bat ending and once with .cmd ending
    if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
    Batch File
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Feb 26 01:48:39 GMT 2020
    - 6.5K bytes
    - Viewed (0)
Back to top