Skip to content

Commit 0fc367f

Browse files
committed
remove optional chaining
1 parent 93d97ed commit 0fc367f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contracts/FlowStakingCollection.cdc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ access(all) contract FlowStakingCollection {
11441144
let account = getAccount(address)
11451145
return account.capabilities
11461146
.get<&StakingCollection>(self.StakingCollectionPublicPath)
1147-
.check() ?? false
1147+
.check()
11481148
}
11491149

11501150
/// Creates a brand new empty staking collection resource and returns it to the caller

0 commit comments

Comments
 (0)