Skip to content

Commit c8e5767

Browse files
committed
Follow up to apple#678, make String conversion explicit always.
1 parent f2971d5 commit c8e5767

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Sources/PluginLibrary/NamingUtils.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,7 @@ public enum NamingUtils {
370370

371371
let count = fromChars.distance(from: fromChars.startIndex, to: fromIndex)
372372
let idx = from.index(from.startIndex, offsetBy: count)
373-
#if swift(>=4.0)
374-
return String(from[idx..<from.endIndex])
375-
#else
376-
return from[idx..<from.endIndex]
377-
#endif
373+
return String(from[idx..<from.endIndex])
378374
}
379375
}
380376

0 commit comments

Comments
 (0)