-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash fix on bid.ext.prebid.meta getter in Bid.swift #1108
base: master
Are you sure you want to change the base?
Conversation
@@ -88,12 +88,14 @@ public class Bid: NSObject { | |||
|
|||
/// Preffered plugin renderer name | |||
public var pluginRendererName: String? { | |||
meta?[Bid.KEY_RENDERER_NAME] | |||
guard let rendererName = meta?[Bid.KEY_RENDERER_NAME] as? String else { return nil } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just return meta?[Bid.KEY_RENDERER_NAME] as? String
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
} | ||
|
||
/// Preffered plugin renderer version | ||
public var pluginRendererVersion: String? { | ||
meta?[Bid.KEY_RENDERER_VERSION] | ||
guard let rendererVersion = meta?[Bid.KEY_RENDERER_VERSION] as? String else { return nil } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#1107