remove debug

This commit is contained in:
btzr-io 2018-02-23 18:20:44 -07:00
parent 921f89b076
commit 45209c5a91

View file

@ -34,8 +34,6 @@ class FileExporter extends React.PureComponent {
const { onFileCreated } = this.props; const { onFileCreated } = this.props;
fs.writeFile(filename, data, err => { fs.writeFile(filename, data, err => {
if (err) throw err; if (err) throw err;
//Debug
console.log('The file has been saved!', filename);
// Do something after creation // Do something after creation
onFileCreated && onFileCreated(filename); onFileCreated && onFileCreated(filename);
}); });
@ -57,8 +55,6 @@ class FileExporter extends React.PureComponent {
const format = path.extname(filename).replace(/\./g, ''); const format = path.extname(filename).replace(/\./g, '');
// Parse data to string with the chosen format // Parse data to string with the chosen format
const parsed = parseData(data, format); const parsed = parseData(data, format);
// Debug
console.log(parsed, data, format);
// Write file // Write file
parsed && this.handleFileCreation(filename, parsed); parsed && this.handleFileCreation(filename, parsed);
}); });