Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
overload defaults on options get
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Oct 10, 2018
1 parent 154c211 commit 7c3e0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/passwordGeneration.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
if (options == null) {
this.optionsCache = DefaultOptions;
} else {
this.optionsCache = options;
this.optionsCache = Object.assign({}, DefaultOptions, options);
}
}

Expand Down

0 comments on commit 7c3e0cb

Please sign in to comment.