@ -63,7 +63,10 @@ func readMessage(messageFilePath string) (string, error) {
}
file.Close()
err = file.Close()
if err != nil {
fmt.Println("error while closing file:", err)
return output, err
@ -7,6 +7,7 @@ package main
import (
"encoding/base64"
"errors"
"fmt"
"log"
"os"
"runtime"
@ -428,7 +429,6 @@ func oxStoreKey(location string, key string) error {
return err
defer file.Close()
if runtime.GOOS != "windows" {
_ = file.Chmod(os.FileMode(0600))
} else {
@ -438,6 +438,10 @@ func oxStoreKey(location string, key string) error {
return nil