Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
Limon-O-O committed Feb 19, 2017
1 parent a9b8cdc commit 95a0c62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions China/QQViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ class QQViewController: UIViewController {

fileprivate func shareInfo(_ info: MonkeyKing.Info) {

var message :MonkeyKing.Message?
var message: MonkeyKing.Message?

switch self.segmentControl.selectedSegmentIndex{
switch self.segmentControl.selectedSegmentIndex {
case 0:
message = MonkeyKing.Message.qq(.friends(info: info))
case 1:
Expand All @@ -126,7 +126,7 @@ class QQViewController: UIViewController {
break
}

if let message = message{
if let message = message {
MonkeyKing.deliver(message) { result in
print("result: \(result)")
}
Expand Down

0 comments on commit 95a0c62

Please sign in to comment.