Skip to content

Commit e23a33e

Browse files
chore: replaced if with guard
1 parent b515690 commit e23a33e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Web3Core/KeystoreManager/BIP39.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public class BIP39 {
183183
}
184184

185185
public static func seedFromMmemonics(_ mnemonics: String, password: String = "", language: BIP39Language = .english) -> Data? {
186-
if mnemonicsToEntropy(mnemonics, language: language) == nil {
186+
guard mnemonicsToEntropy(mnemonics, language: language) != nil else {
187187
return nil
188188
}
189189
return dataFrom(mnemonics: mnemonics, password: password)

0 commit comments

Comments
 (0)