Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rolivieri committed Dec 10, 2016
1 parent 3528c0f commit e33a59b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/CloudFoundryEnv/AppEnv.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public struct AppEnv {
public func getServices() -> [String:Service] {
var results: [String:Service] = [:]
for (_, servs) in services {
if let servsArray = servs as? Array<[String:Any]> {
if let servsArray = servs as? [[String:Any]] {
for service in servsArray {
// A service must have a name and a label
if let name: String = service["name"] as? String,
Expand Down Expand Up @@ -203,7 +203,7 @@ public struct AppEnv {
if let query = substitutions["query"] as? String {
parsedURL.query = query
}
if let queryItems = substitutions["queryItems"] as? Array<[String:Any]> {
if let queryItems = substitutions["queryItems"] as? [[String:Any]] {
var urlQueryItems: [URLQueryItem] = []
for queryItem in queryItems {
if let name = queryItem["name"] as? String {
Expand Down

0 comments on commit e33a59b

Please sign in to comment.