Skip to content

1.46.0 - Add `@discardableResult` to QueryBuilder's range and sort methods

Compare
Choose a tag to compare
@penny-for-vapor penny-for-vapor released this 31 Jan 12:46
· 18 commits to main since this release
0a2b448

What's Changed

Add @discardableResult to QueryBuilder's range and sort methods by @jiahan-wu in #592

This Pull Request addresses an issue where calling the sort methods in the QueryBuilder class would result in a “Result of call to ‘sort’ is unused” warning. To resolve this, I have added the @discardableResult attribute to these methods, allowing users to call them without triggering the warning when the result is not explicitly used.

This patch was released by @gwynne

Full Changelog: 1.45.1...1.46.0