Skip to content

Commit

Permalink
Merge pull request #1218 from balena-io/vipul/quotes
Browse files Browse the repository at this point in the history
patch: Remove additional quotes
  • Loading branch information
bulldozer-balena[bot] authored Apr 20, 2022
2 parents 62ca99b + a6d3d4e commit a17c94a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -6328,15 +6328,15 @@ generation is only supported when using a session token, not an API key.

**Example**
```js
balena.models.os.getConfig('myorganization/myapp', { version: ''2.12.7+rev1.prod'' }).then(function(config) {
balena.models.os.getConfig('myorganization/myapp', { version: '2.12.7+rev1.prod' }).then(function(config) {
fs.writeFile('foo/bar/config.json', JSON.stringify(config));
});

balena.models.os.getConfig(123, { version: ''2.12.7+rev1.prod'' }).then(function(config) {
balena.models.os.getConfig(123, { version: '2.12.7+rev1.prod' }).then(function(config) {
fs.writeFile('foo/bar/config.json', JSON.stringify(config));
});

balena.models.os.getConfig('myorganization/myapp', { version: ''2.12.7+rev1.prod'' }, function(error, config) {
balena.models.os.getConfig('myorganization/myapp', { version: '2.12.7+rev1.prod' }, function(error, config) {
if (error) throw error;
fs.writeFile('foo/bar/config.json', JSON.stringify(config));
});
Expand Down
6 changes: 3 additions & 3 deletions lib/models/os.ts
Original file line number Diff line number Diff line change
Expand Up @@ -769,15 +769,15 @@ const getOsModel = function (
* @returns {Promise}
*
* @example
* balena.models.os.getConfig('myorganization/myapp', { version: ''2.12.7+rev1.prod'' }).then(function(config) {
* balena.models.os.getConfig('myorganization/myapp', { version: '2.12.7+rev1.prod' }).then(function(config) {
* fs.writeFile('foo/bar/config.json', JSON.stringify(config));
* });
*
* balena.models.os.getConfig(123, { version: ''2.12.7+rev1.prod'' }).then(function(config) {
* balena.models.os.getConfig(123, { version: '2.12.7+rev1.prod' }).then(function(config) {
* fs.writeFile('foo/bar/config.json', JSON.stringify(config));
* });
*
* balena.models.os.getConfig('myorganization/myapp', { version: ''2.12.7+rev1.prod'' }, function(error, config) {
* balena.models.os.getConfig('myorganization/myapp', { version: '2.12.7+rev1.prod' }, function(error, config) {
* if (error) throw error;
* fs.writeFile('foo/bar/config.json', JSON.stringify(config));
* });
Expand Down

0 comments on commit a17c94a

Please sign in to comment.