refactor(uptime): beautify

This commit is contained in:
Daniel Sogl 2018-04-07 11:00:19 +02:00 committed by GitHub
parent e6f6158b43
commit b3082bf5ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
import {Injectable} from '@angular/core'; import { Injectable } from '@angular/core';
import {Cordova, IonicNativePlugin, Plugin} from '@ionic-native/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/** /**
* @name Uptime * @name Uptime
@ -15,8 +15,8 @@ import {Cordova, IonicNativePlugin, Plugin} from '@ionic-native/core';
* ... * ...
* *
* this.uptime.getUptime() * this.uptime.getUptime()
* .then((uptime: string) => console.log(uptime)) * .then(uptime => console.log(uptime))
* .catch((error: any) => console.log(error)); * .catch(error => console.log(error));
* *
* ``` * ```
*/ */