Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Commit

Permalink
options might be immutable, so better copy instead than assign
Browse files Browse the repository at this point in the history
  • Loading branch information
emoabj committed Aug 17, 2016
1 parent 83c2aa2 commit 42f6b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function optionsFromArguments(args) {
options.directAccess = otherOptions.directAccess;
}
} else {
options = projectIdOrOptions || {};
options = Object.assign( {}, projectIdOrOptions);
}
options = fromEnvironmentOrDefault(options, 'projectId', 'GCP_PROJECT_ID', undefined);
options = fromEnvironmentOrDefault(options, 'keyFilename', 'GCP_KEYFILE_PATH', undefined);
Expand Down

0 comments on commit 42f6b34

Please sign in to comment.