refactor(uptime): beautify

This commit is contained in:
Daniel Sogl 2018-04-06 16:33:00 +02:00 committed by GitHub
parent 35ad7f6387
commit bc7bdc60b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,5 @@
import {Injectable} from '@angular/core';
import {Plugin, Cordova, IonicNativePlugin} from '@ionic-native/core';
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Uptime
@ -32,14 +31,12 @@ import {Plugin, Cordova, IonicNativePlugin} from '@ionic-native/core';
})
@Injectable()
export class Uptime extends IonicNativePlugin {
/**
* This function return system uptime
* @return {Promise<string>} Returns a promise that return the uptime in milliseconds
*/
@Cordova()
getUptime(): Promise<string> {
return; // We add return; here to avoid any IDE / Compiler errors
return;
}
}