Skip to content

fix warnings #24127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public func checkOneLevelOfForwardCollection<
}
}

var allIndices = Array(collection.indices)
let allIndices = Array(collection.indices)

if expectedArray.count >= 2 {
for i in 0..<allIndices.count-1 {
Expand Down Expand Up @@ -693,7 +693,7 @@ public func checkOneLevelOfBidirectionalCollection<
}
}

var allIndices = Array(collection.indices)
let allIndices = Array(collection.indices)

if expectedArray.count >= 2 {
for i in 0..<allIndices.count-1 {
Expand Down Expand Up @@ -978,7 +978,7 @@ public func checkOneLevelOfRandomAccessCollection<
}
}

var allIndices = Array(collection.indices)
let allIndices = Array(collection.indices)

if expectedArray.count >= 2 {
for i in 0..<allIndices.count-1 {
Expand Down Expand Up @@ -1237,7 +1237,7 @@ public func checkOneLevelOfForwardCollection<
}
}

var allIndices = Array(collection.indices)
let allIndices = Array(collection.indices)

if expectedArray.count >= 2 {
for i in 0..<allIndices.count-1 {
Expand Down Expand Up @@ -1463,7 +1463,7 @@ public func checkOneLevelOfBidirectionalCollection<
}
}

var allIndices = Array(collection.indices)
let allIndices = Array(collection.indices)

if expectedArray.count >= 2 {
for i in 0..<allIndices.count-1 {
Expand Down Expand Up @@ -1748,7 +1748,7 @@ public func checkOneLevelOfRandomAccessCollection<
}
}

var allIndices = Array(collection.indices)
let allIndices = Array(collection.indices)

if expectedArray.count >= 2 {
for i in 0..<allIndices.count-1 {
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/Darwin/Foundation/JSONEncoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ open class JSONDecoder {
let leadingUnderscoreRange = stringKey.startIndex..<firstNonUnderscore
let trailingUnderscoreRange = stringKey.index(after: lastNonUnderscore)..<stringKey.endIndex

var components = stringKey[keyRange].split(separator: "_")
let components = stringKey[keyRange].split(separator: "_")
let joinedString : String
if components.count == 1 {
// No underscores in key, leave the word as is - maybe already camel cased
Expand Down