Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Apr 21, 2024
1 parent 725cccc commit f1ff7f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GRDB/Record/FetchableRecord+Decodable.swift
Expand Up @@ -189,7 +189,7 @@ private struct _RowDecoder<R: FetchableRecord>: Decoder {
}

// Prefetched Rows?
if let prefetchedRows = row.prefetchedRows[key.stringValue] {
if row.prefetchedRows[key.stringValue] != nil {
return false
}

Expand Down Expand Up @@ -391,7 +391,7 @@ private struct _RowDecoder<R: FetchableRecord>: Decoder {

// Column?
if let column = try? decodeColumn(forKey: key),
let index = row.index(forColumn: column)
row.index(forColumn: column) != nil
{
// We need a JSON container, but how do we create one?
throw DecodingError.typeMismatch(
Expand Down

0 comments on commit f1ff7f2

Please sign in to comment.