Skip to content

Commit

Permalink
Fix reference to self.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanswong committed Jul 30, 2019
1 parent 84be636 commit 9ec2deb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/BrazeCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ public class BrazeCommand {
}

public func remoteCommand() -> TealiumRemoteCommand {
return TealiumRemoteCommand(commandId: "braze", description: "Braze Remote Command") { [weak self] response in
guard let self = self else { return }

return TealiumRemoteCommand(commandId: "braze", description: "Braze Remote Command") { response in
let payload = response.payload()
guard let command = payload[AppboyKey.command] as? String else {
return
Expand Down

0 comments on commit 9ec2deb

Please sign in to comment.