mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 10:12:29 +08:00 
			
		
		
		
	caddypki: Try to fix lint warnings
This commit is contained in:
		@ -138,7 +138,7 @@ func (a *adminAPI) handleCAInfo(w http.ResponseWriter, r *http.Request) error {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	w.Header().Set("Content-Type", "application/json")
 | 
						w.Header().Set("Content-Type", "application/json")
 | 
				
			||||||
	w.Write(encoded)
 | 
						_, _ = w.Write(encoded)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -171,7 +171,7 @@ func (a *adminAPI) handleCACerts(w http.ResponseWriter, r *http.Request) error {
 | 
				
			|||||||
	w.Header().Set("Content-Type", "application/pem-certificate-chain")
 | 
						w.Header().Set("Content-Type", "application/pem-certificate-chain")
 | 
				
			||||||
	_, err = w.Write(interCert)
 | 
						_, err = w.Write(interCert)
 | 
				
			||||||
	if err == nil {
 | 
						if err == nil {
 | 
				
			||||||
		w.Write(rootCert)
 | 
							_, _ = w.Write(rootCert)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
		Reference in New Issue
	
	Block a user