Merge pull request #166 from strongloop/fix_octal

Fix `use strict`
This commit is contained in:
Amirali Jafarian 2016-10-20 16:42:36 -04:00 committed by GitHub
commit b6528e184f
1 changed files with 2 additions and 5 deletions

View File

@ -2,10 +2,7 @@
// Node module: loopback-component-storage
// This file is licensed under the Artistic License 2.0.
// License text available at https://opensource.org/licenses/Artistic-2.0
// Turning on strict for this file breaks;
// disabling strict for this file
/* eslint-disable strict */
'use strict';
// Globalization
var g = require('strong-globalize')();
@ -176,7 +173,7 @@ FileSystemProvider.prototype.upload = function(options, cb) {
var fileOpts = {flags: options.flags || 'w+',
encoding: options.encoding || null,
mode: options.mode || 0666,
mode: options.mode || parseInt('0666', 8),
};
try {