Skip to content

Commit 600975f

Browse files
authored
Merge pull request #3283 from Nirma/string_swift_code_style
[stdlib] Remove unnecessary parenthesis
2 parents dce2db9 + 0af6f09 commit 600975f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/String.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ extension String {
612612
#if _runtime(_ObjC)
613613
// We only want to perform this optimization on objc runtimes. Elsewhere,
614614
// we will make it follow the unicode collation algorithm even for ASCII.
615-
if (_core.isASCII && rhs._core.isASCII) {
615+
if _core.isASCII && rhs._core.isASCII {
616616
return _compareASCII(rhs)
617617
}
618618
#endif
@@ -715,7 +715,7 @@ extension String : Hashable {
715715
@_semantics("string.concat")
716716
public func + (lhs: String, rhs: String) -> String {
717717
var lhs = lhs
718-
if (lhs.isEmpty) {
718+
if lhs.isEmpty {
719719
return rhs
720720
}
721721
lhs._core.append(rhs._core)

0 commit comments

Comments
 (0)