Remove non-standard "type annotations"

Since we're not actually using Flow.
This commit is contained in:
Nick Farina
2015-07-17 08:57:56 -07:00
parent 94ad9eddcb
commit bf5fc50fa6
8 changed files with 44 additions and 44 deletions

View File

@@ -12,28 +12,28 @@ let loggerCache = {};
export class Logger {
constructor(providerName: string) {
constructor(providerName) {
this.providerName = providerName;
}
debug(msg: string) {
debug(msg) {
if (DEBUG_ENABLED)
this.log('debug', msg);
}
info(msg: string) {
info(msg) {
this.log('info', msg);
}
warn(msg: string) {
warn(msg) {
this.log('warn', msg);
}
error(msg: string) {
error(msg) {
this.log('error', msg);
}
log(level: string, msg: string) {
log(level, msg) {
if (level == 'debug')
msg = chalk.gray(msg);
@@ -49,7 +49,7 @@ export class Logger {
console.log(msg);
}
static forProvider(providerName: string): Logger {
static forProvider(providerName) {
return loggerCache[providerName] || (loggerCache[providerName] = new Logger(providerName));
}
}