mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 16:59:48 +02:00
#931 Aligning code standard
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
/**
|
||||
* Created by knut on 15-01-14.
|
||||
*/
|
||||
import { logger } from '../../logger'
|
||||
import { logger } from '../../logger';
|
||||
|
||||
var message = ''
|
||||
var info = false
|
||||
var message = '';
|
||||
var info = false;
|
||||
|
||||
export const setMessage = txt => {
|
||||
logger.debug('Setting message to: ' + txt)
|
||||
message = txt
|
||||
}
|
||||
logger.debug('Setting message to: ' + txt);
|
||||
message = txt;
|
||||
};
|
||||
|
||||
export const getMessage = () => {
|
||||
return message
|
||||
}
|
||||
return message;
|
||||
};
|
||||
|
||||
export const setInfo = inf => {
|
||||
info = inf
|
||||
}
|
||||
info = inf;
|
||||
};
|
||||
|
||||
export const getInfo = () => {
|
||||
return info
|
||||
}
|
||||
return info;
|
||||
};
|
||||
|
||||
// export const parseError = (err, hash) => {
|
||||
// global.mermaidAPI.parseError(err, hash)
|
||||
@@ -33,4 +33,4 @@ export default {
|
||||
setInfo,
|
||||
getInfo
|
||||
// parseError
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user