Skip to content

Commit

Permalink
Fixes a strange-looking Xcode auto fix
Browse files Browse the repository at this point in the history
Not sure why it chose the double negative...
  • Loading branch information
Sam Davies committed Aug 20, 2014
1 parent 4a954d2 commit 4952005
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class WeightTableViewController: UITableViewController, WeightEntryDelegate, Hea

let query = HKSampleQuery(sampleType: weightSampleType, predicate: predicate, limit: 0, sortDescriptors: nil, resultsHandler: {
(query, results, error) in
if !(results != nil) {
if results == nil {
println("There was an error running the query: \(error)")
}

Expand Down

0 comments on commit 4952005

Please sign in to comment.