Skip to content

Commit

Permalink
one line
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Nov 27, 2023
1 parent 69c8f11 commit 8d4e79a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions subscription_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,8 +972,7 @@ func parseCipherInterface(data interface{}, pnConf *Config, module crypto.Crypto
pnConf.Log.Println("v[pn_other]", v["pn_other"], v, msg)
decrypted, errDecryption := decryptString(module, msg)
if errDecryption != nil {
pnConf.Log.Println(errDecryption, msg)
pnConf.Log.Println("Message might be not encrypted, returning as is...")
pnConf.Log.Println(errDecryption, msg, "\nMessage might be not encrypted, returning as is...")

return v, errDecryption
} else {
Expand All @@ -997,8 +996,7 @@ func parseCipherInterface(data interface{}, pnConf *Config, module crypto.Crypto
var intf interface{}
decrypted, errDecryption := decryptString(module, data.(string))
if errDecryption != nil {
pnConf.Log.Println(errDecryption, intf)
pnConf.Log.Println("Message might be not encrypted, returning as is...")
pnConf.Log.Println(errDecryption, intf, "\nMessage might be not encrypted, returning as is...")

intf = data
return intf, errDecryption
Expand Down

0 comments on commit 8d4e79a

Please sign in to comment.