Skip to content

Commit

Permalink
removed conflicting error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Khelechy committed Nov 21, 2023
1 parent 9ed7afc commit 1ec684b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion cmd/harpocrates/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ func init() {
}

func main() {

if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
Expand Down
9 changes: 6 additions & 3 deletions harpocrates.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ func Seal(secrets []string) {
// Set localStorageUnseal value to false
utils.SetItem(sealHashKey, "0")

color.Green("Harpocrates vault is sealed successfully")

}

func Get(key string) string {
Expand Down Expand Up @@ -123,10 +125,11 @@ func Set(key, value string) {
// Check localStorage is unsealed
if isUnsealed() {
utils.SetItem(key, value)
}else{

color.Red(errIsSealed)
return
}

color.Red(errIsSealed)
return
}

func ValidateSharedKeys(combinedSeedingSecret, seedingSecret string) {
Expand Down

0 comments on commit 1ec684b

Please sign in to comment.