Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 4,948 for if (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

        responseDone: Boolean,
        requestDone: Boolean,
        e: E,
      ): E {
        if (e != null) {
          trackFailure(e)
        }
        if (requestDone) {
          if (e != null) {
            eventListener.requestFailed(call, e)
          } else {
            eventListener.requestBodyEnd(call, bytesRead)
          }
        }
        if (responseDone) {
          if (e != null) {
            eventListener.responseFailed(call, e)
          } else {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  2. internal/config/cache/cache.go

    // Get performs conditional check and returns the cached object info if any.
    func (c Config) Get(r *CondCheck) (*ObjectInfo, error) {
    	configLock.RLock()
    	defer configLock.RUnlock()
    
    	if !c.Enable {
    		return nil, nil
    	}
    
    	if c.Endpoint == "" {
    		// Endpoint not set, make this a no-op
    		return nil, nil
    	}
    
    	buf, err := r.MarshalMsg(nil)
    	if err != nil {
    		return nil, err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. src/cmd/addr2line/addr2line_test.go

    	if err != nil {
    		t.Fatalf("Stat failed: %v", err)
    	}
    
    	// Debug paths are stored slash-separated, so convert to system-native.
    	srcPath = filepath.FromSlash(srcPath)
    	fi2, err := os.Stat(srcPath)
    
    	if err != nil {
    		t.Fatalf("Stat failed: %v", err)
    	}
    	if !os.SameFile(fi1, fi2) {
    		t.Fatalf("addr2line_test.go and %s are not same file", srcPath)
    	}
    	if want := "124"; srcLineNo != want {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/Transport.java

        /**
         * GETs the source URI content into target (does not have to exist, or will be overwritten if exist). The
         * source MUST BE relative from the {@link RemoteRepository#getUrl()} root.
         *
         * @return {@code true} if operation succeeded, {@code false} if source does not exist.
         * @throws RuntimeException If failed (and not due source not exists).
         */
        boolean get(@Nonnull URI relativeSource, @Nonnull Path target);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Mar 23 05:29:39 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolInfoProvider.kt

        override fun getDeprecation(symbol: KtSymbol): DeprecationInfo? {
            if (symbol is KtFirPackageSymbol || symbol is KtReceiverParameterSymbol) return null
            require(symbol is KtFirSymbol<*>) { "${this::class}" }
    
            // Optimization: Avoid building `firSymbol` of `KtFirPsiJavaClassSymbol` if it definitely isn't deprecated.
            if (symbol is KtFirPsiJavaClassSymbol && !symbol.mayHaveDeprecation()) {
                return null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Sep 19 22:14:09 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  6. internal/config/certs.go

    	}
    	if key == nil {
    		return tls.Certificate{}, ErrTLSUnexpectedData(nil).Msg("The private key is not readable")
    	}
    	if x509.IsEncryptedPEMBlock(key) {
    		password := env.Get(EnvCertPassword, "")
    		if len(password) == 0 {
    			return tls.Certificate{}, ErrTLSNoPassword(nil)
    		}
    		decryptedKey, decErr := x509.DecryptPEMBlock(key, []byte(password))
    		if decErr != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  7. cmd/server-rlimit.go

    	sysMaxThreads, err := sys.GetMaxThreads()
    	if err == nil {
    		minioMaxThreads := (sysMaxThreads * 90) / 100
    		// Only set max threads if it is greater than the default one
    		if minioMaxThreads > 10000 {
    			debug.SetMaxThreads(minioMaxThreads)
    		}
    	}
    
    	var maxLimit uint64
    
    	// Set open files limit to maximum.
    	if _, maxLimit, err = sys.GetMaxOpenFileLimit(); err != nil {
    		return err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. internal/config/crypto.go

    	algorithm := sio.AES_256_GCM
    	if !fips.Enabled && !sioutil.NativeAES() {
    		algorithm = sio.ChaCha20Poly1305
    	}
    
    	key, err := k.GenerateKey(context.Background(), "", ctx)
    	if err != nil {
    		return nil, err
    	}
    	stream, err := algorithm.Stream(key.Plaintext)
    	if err != nil {
    		return nil, err
    	}
    	nonce := make([]byte, stream.NonceSize())
    	if _, err := rand.Read(nonce); err != nil {
    		return nil, err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy

                    if (!oldNullability && newNullability) {
                        errors << "From non-nullable to nullable breaking change"
                    } else if (oldNullability && !newNullability) {
                        warnings << "Nullability changed from nullable to non-nullable"
                    }
                } else if (oldNullability != newNullability) {
                    errors << "Nullability breaking change"
                }
    
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Apr 13 10:04:28 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  10. internal/auth/credentials_test.go

    		cred, err := CreateCredentials(testCase.accessKey, testCase.secretKey)
    
    		if err != nil {
    			if testCase.expectedErr == nil {
    				t.Fatalf("test %v: error: expected = <nil>, got = %v", i+1, err)
    			}
    			if testCase.expectedErr.Error() != err.Error() {
    				t.Fatalf("test %v: error: expected = %v, got = %v", i+1, testCase.expectedErr, err)
    			}
    		} else {
    			if testCase.expectedErr != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 5.4K bytes
    - Viewed (0)
Back to top