Skip to content

Commit

Permalink
Whitespace fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Oct 9, 2021
1 parent 70a9d1c commit 5ebb42e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,19 @@ const assimpjs = require ('../dist/assimpjs.js')();
assimpjs.then ((ajs) => {
// convert model
let result = ajs.ConvertFile (
// file name
'cube_with_materials.obj',
// file content as arraybuffer
fs.readFileSync ('testfiles/cube_with_materials.obj'),
// check if file exists by name
function (fileName) {
return fs.existsSync ('testfiles/' + fileName);
},
// get file content as arraybuffer by name
function (fileName) {
return fs.readFileSync ('testfiles/' + fileName);
}
);
// file name
'cube_with_materials.obj',
// file content as arraybuffer
fs.readFileSync ('testfiles/cube_with_materials.obj'),
// check if file exists by name
function (fileName) {
return fs.existsSync ('testfiles/' + fileName);
},
// get file content as arraybuffer by name
function (fileName) {
return fs.readFileSync ('testfiles/' + fileName);
}
);

// check if the conversion succeeded
if (!result.IsSuccess () || result.FileCount () == 0) {
Expand Down
26 changes: 13 additions & 13 deletions examples/node_local_delay_load_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ const assimpjs = require ('../dist/assimpjs.js')();
assimpjs.then ((ajs) => {
// convert model
let result = ajs.ConvertFile (
// file name
'cube_with_materials.obj',
// file content as arraybuffer
fs.readFileSync ('testfiles/cube_with_materials.obj'),
// check if file exists by name
function (fileName) {
return fs.existsSync ('testfiles/' + fileName);
},
// get file content as arraybuffer by name
function (fileName) {
return fs.readFileSync ('testfiles/' + fileName);
}
);
// file name
'cube_with_materials.obj',
// file content as arraybuffer
fs.readFileSync ('testfiles/cube_with_materials.obj'),
// check if file exists by name
function (fileName) {
return fs.existsSync ('testfiles/' + fileName);
},
// get file content as arraybuffer by name
function (fileName) {
return fs.readFileSync ('testfiles/' + fileName);
}
);

// check if the conversion succeeded
if (!result.IsSuccess () || result.FileCount () == 0) {
Expand Down

0 comments on commit 5ebb42e

Please sign in to comment.