Skip to content

Commit f2c0307

Browse files
committed
Improve revision comparison to avoid version conficts
1 parent 48fc816 commit f2c0307

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
6+
### Changed
7+
- Improve revision comparison to avoid version conficts
68

79
## [0.6.1] - 2017-04-05
810
### Fixed

src/HearthstoneJSON.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class HearthstoneJSON {
7878
typeof stored["revision"] === "number" &&
7979
Array.isArray(typeof stored["cards"])
8080
) {
81-
if (stored["revision"] === this.getRevision(build)) {
81+
if (stored["revision"] >= this.getRevision(build)) {
8282
this.cached = true;
8383
return Promise.resolve(stored["cards"]);
8484
}

0 commit comments

Comments
 (0)