From 9aad8530a46a57a0f4ade873b717ffe92d443ea1 Mon Sep 17 00:00:00 2001 From: ardevd Date: Thu, 4 Jan 2024 15:02:30 +0100 Subject: [PATCH] formatting fix --- internal/credentials/credential_handler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/credentials/credential_handler.go b/internal/credentials/credential_handler.go index 81c1bfd..8cffeda 100644 --- a/internal/credentials/credential_handler.go +++ b/internal/credentials/credential_handler.go @@ -45,7 +45,7 @@ func deserialize(data []byte) (*credentialsHeader, error) { certLength := int(binary.BigEndian.Uint32(data[:4])) macaroonLength := int(binary.BigEndian.Uint32(data[4:])) return &credentialsHeader{ - CertLength: certLength, + CertLength: certLength, MacaroonLength: macaroonLength, }, nil } @@ -63,8 +63,8 @@ func EncryptCredentials(certificatePath string, macaroonPath string) string { } // Create a header with file lengths - header := newHeader(len(certData),len(macData)) - headerBytes := header.serialize() + header := newHeader(len(certData), len(macData)) + headerBytes := header.serialize() log.Info("Header: " + hex.EncodeToString(headerBytes)) concatenatedData := append(certData, macData...)