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

@@ -7,24 +7,24 @@ import { Config } from './config';
//
// global cached config
let config:Config;
let config;
export class User {
static get config():Config {
static get config() {
return config || (config = Config.load(User.configPath));
}
static get storagePath():string {
static get storagePath() {
let home = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
return path.join(home, ".homebridge");
}
static get configPath():string {
static get configPath() {
return path.join(User.storagePath, "config.json");
}
static get providersPath():string {
static get providersPath() {
return path.join(User.storagePath, "providers");
}
}