mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-19 21:03:24 +00:00
Remove non-standard "type annotations"
Since we're not actually using Flow.
This commit is contained in:
10
lib/user.js
10
lib/user.js
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user