mirror of https://github.com/minio/minio.git
refactor: remove tautological nil check for publicKey in InspectDataHandler
This commit is contained in:
parent
e909be6380
commit
eff39d0993
|
@ -3334,10 +3334,8 @@ func (a adminAPIHandlers) InspectDataHandler(w http.ResponseWriter, r *http.Requ
|
|||
|
||||
// Write a version for making *incompatible* changes.
|
||||
// The AdminClient will reject any version it does not know.
|
||||
if publicKey == nil {
|
||||
w.Write([]byte{1})
|
||||
w.Write(key[:])
|
||||
}
|
||||
w.Write([]byte{1})
|
||||
w.Write(key[:])
|
||||
|
||||
stream, err := sio.AES_256_GCM.Stream(key[:])
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue