Skip to content

Commit

Permalink
Avoid use of numeric indexing on SQLite3::ResultSet::HashWithTypesAnd…
Browse files Browse the repository at this point in the history
…Fields
  • Loading branch information
knu committed May 25, 2022
1 parent d12449a commit 060eb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/cookie_jar/mozilla_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def closed?

# Returns the schema version of the database.
def schema_version
@schema_version ||= @db.execute("PRAGMA user_version").first[0]
@schema_version ||= @db.execute("PRAGMA user_version").first["user_version"]
rescue SQLite3::SQLException
@logger.warn "couldn't get schema version!" if @logger
return nil
Expand Down

0 comments on commit 060eb44

Please sign in to comment.