Swiftgram / TDLibKit

Native Swift wrapper for Telegram's TDLib. Available on iOS, macOS, watchOS, tvOS and visionOS.
MIT License
106 stars 23 forks source link

Annotate methods returning `Ok` with `@discardableResult` #35

Closed nikstar closed 1 year ago

nikstar commented 1 year ago

This gets rid of unnecessary _ = at call site:

// before
_ = try await api.setTdlibParameters(...)

// after
try await api.setTdlibParameters(...)
Kylmakalle commented 1 year ago

That's something @levochkaa has been requesting for a long time. Nicely done @nikstar!