Skip to content

Commit

Permalink
#18: Fixed a ridiculous logic error when updating the DiscogsService …
Browse files Browse the repository at this point in the history
…progress bar.
  • Loading branch information
jrtibbetts committed Apr 24, 2019
1 parent 0376e6b commit 530db3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class DiscogsService: ThirdPartyService, AuthenticatedService, ImportableService
importedItemsInThisBatch += 1
let allImportedItemsCount = importedItemCount + importedItemsInThisBatch

if (allImportedItemsCount) / 5 == 0 {
if (allImportedItemsCount) % 5 == 0 {
importDelegate?.update(importedItemCount: allImportedItemsCount,
totalCount: totalItems,
forService: self)
Expand Down

0 comments on commit 530db3f

Please sign in to comment.