Skip to content
This repository was archived by the owner on Dec 29, 2018. It is now read-only.

Commit 82860eb

Browse files
authored
Merge pull request #93 from jatoben/nix-iuo
Unwrap implicit optional
2 parents 2d0f00b + 664a263 commit 82860eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CommandLineKit/StringExtensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ internal extension String {
2727
* using localeconv(3).
2828
*/
2929
private func _localDecimalPoint() -> Character {
30-
guard let locale = localeconv() else {
30+
guard let locale = localeconv(), let decimalPoint = locale.pointee.decimal_point else {
3131
return "."
3232
}
3333

34-
return Character(UnicodeScalar(UInt8(bitPattern: locale.pointee.decimal_point.pointee)))
34+
return Character(UnicodeScalar(UInt8(bitPattern: decimalPoint.pointee)))
3535
}
3636

3737
/**

0 commit comments

Comments
 (0)