Skip to content

Commit

Permalink
Merge pull request #40 from nghialv/improvement
Browse files Browse the repository at this point in the history
Improvement
  • Loading branch information
nghialv committed Apr 11, 2016
2 parents 7e4e78b + 763ccfb commit a3f4015
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Hakuba.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Hakuba"
s.version = "2.1"
s.version = "2.1.1"
s.summary = "A new way to manage UITableView"
s.homepage = "https://github.com/nghialv/Hakuba"
s.license = { :type => "MIT", :file => "LICENSE" }
Expand All @@ -9,7 +9,7 @@ Pod::Spec.new do |s|

s.platform = :ios
s.ios.deployment_target = "8.0"
s.source = { :git => "https://github.com/nghialv/Hakuba.git", :tag => "2.1" }
s.source = { :git => "https://github.com/nghialv/Hakuba.git", :tag => "2.1.1" }
s.source_files = "Hakuba/*"
s.requires_arc = true
end
8 changes: 4 additions & 4 deletions Hakuba/BumpTracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ final class BumpTracker {
}

switch state {
case .Insert(let indexes):
case .Insert(let indexes) where indexes.isNotEmpty:
return .Insert(indexes.map(toIndexPath))

case .Move(let from, let to):
return .Move(toIndexPath(from), toIndexPath(to))

case .Remove(let indexes):
case .Remove(let indexes) where indexes.isNotEmpty:
return .Delete(indexes.map(toIndexPath))

default:
Expand All @@ -94,13 +94,13 @@ final class BumpTracker {
}

switch state {
case .Insert(let indexes):
case .Insert(let indexes) where indexes.isNotEmpty:
return .Insert(toIndexSet(indexes))

case .Move(let from, let to):
return .Move(from, to)

case .Remove(let indexes):
case .Remove(let indexes) where indexes.isNotEmpty:
return .Delete(toIndexSet(indexes))

default:
Expand Down

0 comments on commit a3f4015

Please # to comment.