File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ matrix:
8
8
include :
9
9
- os : osx
10
10
env : JOB=SwiftPM_OSX
11
- osx_image : xcode10.2
11
+ osx_image : xcode11
12
12
- os : linux
13
13
env : JOB=SwiftPM_linux
14
- dist : trusty
14
+ dist : bionic
15
15
sudo : required
16
16
install :
17
17
- travis_retry eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
229
229
let fieldMap = type. fields
230
230
var fields = Array ( fieldMap. values) . sorted ( by: { $0. name < $1. name } )
231
231
232
- if !arguments[ " includeDeprecated " ] . bool! {
232
+ if !( arguments [ " includeDeprecated " ] . bool ?? false ) {
233
233
fields = fields. filter ( { !$0. isDeprecated } )
234
234
}
235
235
@@ -240,7 +240,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
240
240
let fieldMap = type. fields
241
241
var fields = Array ( fieldMap. values) . sorted ( by: { $0. name < $1. name } )
242
242
243
- if !arguments[ " includeDeprecated " ] . bool! {
243
+ if !( arguments [ " includeDeprecated " ] . bool ?? false ) {
244
244
fields = fields. filter ( { !$0. isDeprecated } )
245
245
}
246
246
@@ -285,7 +285,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
285
285
286
286
var values = type. values
287
287
288
- if !arguments[ " includeDeprecated " ] . bool! {
288
+ if !( arguments [ " includeDeprecated " ] . bool ?? false ) {
289
289
values = values. filter ( { !$0. isDeprecated } )
290
290
}
291
291
You can’t perform that action at this time.
0 commit comments