From 8e1856a90a4fbf1175b90f3e5460c446964dba91 Mon Sep 17 00:00:00 2001 From: Alexander Simmerl Date: Tue, 6 Mar 2018 16:12:57 +0100 Subject: [PATCH] Use builtin panic --- types/priv_validator/json.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/priv_validator/json.go b/types/priv_validator/json.go index 3acaa6e2..5c0849eb 100644 --- a/types/priv_validator/json.go +++ b/types/priv_validator/json.go @@ -90,17 +90,17 @@ func (pvj *PrivValidatorJSON) Save() { func (pvj *PrivValidatorJSON) save() { if pvj.filePath == "" { - cmn.PanicSanity("Cannot save PrivValidator: filePath not set") + panic("Cannot save PrivValidator: filePath not set") } jsonBytes, err := json.Marshal(pvj) if err != nil { // ; BOOM!!! - cmn.PanicCrisis(err) + panic(err) } err = cmn.WriteFileAtomic(pvj.filePath, jsonBytes, 0600) if err != nil { // ; BOOM!!! - cmn.PanicCrisis(err) + panic(err) } }