mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
refactor: avoid generate revision on unit test
This commit is contained in:
parent
88996e92a5
commit
87c16547e8
1 changed files with 4 additions and 1 deletions
|
@ -745,7 +745,10 @@ class LocalStorage implements IStorage {
|
|||
json._rev = DEFAULT_REVISION;
|
||||
}
|
||||
|
||||
json._rev = generateRevision(json._rev);
|
||||
// this is intended in debug mode we do not want modify the store revision
|
||||
if (_.isNil(this.config._debug)) {
|
||||
json._rev = generateRevision(json._rev);
|
||||
}
|
||||
|
||||
return json;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue