Skip to content

Commit 95b2f1f

Browse files
committed
suppress warnings
1 parent e16efce commit 95b2f1f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Sources/Hexaville/main.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,11 @@ class GenerateProject: Command {
6565
let suffix = "-\(hashId)-bucket"
6666

6767
let bucketNameMaxLength = 63
68-
let maxLength = bucketNameMaxLength - (prefix + suffix).characters.count
68+
let maxLength = bucketNameMaxLength - (prefix + suffix).count
6969

70-
let allowedCharacters = Set("abcdefghijklmnopqrstuvwxyz1234567890-".characters)
70+
let allowedCharacters = Set("abcdefghijklmnopqrstuvwxyz1234567890-")
7171
let sanitizedCharacters = projectName
7272
.lowercased()
73-
.characters
7473
.filter { allowedCharacters.contains($0) }
7574
.prefix(maxLength)
7675

Sources/HexavilleCore/Cloud/AWS/AWSLauncherProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,6 @@ extension AWSLauncherProvider {
837837

838838
func pathForARN(_ path: String) throws -> String {
839839
let regex = try NSRegularExpression(pattern: "\\{[a-zA-Z_-]*\\}", options: [])
840-
return regex.stringByReplacingMatches(in: path, options: [], range: NSRange(location: 0, length: path.characters.count), withTemplate: "*")
840+
return regex.stringByReplacingMatches(in: path, options: [], range: NSRange(location: 0, length: path.count), withTemplate: "*")
841841
}
842842
}

0 commit comments

Comments
 (0)