migrating to typescript
This commit is contained in:
parent
20f94721c1
commit
0d9e5072db
|
@ -27,7 +27,7 @@ import Conversion from './Conversion';
|
||||||
* If necessary, writes given log to the "/{tableName}.log" file.
|
* If necessary, writes given log to the "/{tableName}.log" file.
|
||||||
*/
|
*/
|
||||||
export default (conversion: Conversion, log: string | NodeJS.ErrnoException, tableLogPath?: string, isErrorLog?: boolean): void => {
|
export default (conversion: Conversion, log: string | NodeJS.ErrnoException, tableLogPath?: string, isErrorLog?: boolean): void => {
|
||||||
const buffer: Buffer = Buffer.from(`${log}\n\n`, conversion._encoding);
|
const buffer: Buffer = Buffer.from(`${ log }\n\n`, conversion._encoding);
|
||||||
|
|
||||||
if (!isErrorLog) {
|
if (!isErrorLog) {
|
||||||
console.log(log);
|
console.log(log);
|
||||||
|
|
Loading…
Reference in a new issue