mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
Use const slashSeparator instead of "/" everywhere (#8028)
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ func getRootCAs(certsCAsDir string) (*x509.CertPool, error) {
|
||||
// Load all custom CA files.
|
||||
for _, fi := range fis {
|
||||
// Skip all directories.
|
||||
if hasSuffix(fi, slashSeparator) {
|
||||
if hasSuffix(fi, SlashSeparator) {
|
||||
continue
|
||||
}
|
||||
caCert, err := ioutil.ReadFile(pathJoin(certsCAsDir, fi))
|
||||
|
||||
Reference in New Issue
Block a user