You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Tools: Add prefer-arrow-callbacks to ESlint rules (#7810)
This commit is contained in:
@@ -13,8 +13,8 @@ function ntpClient() {
|
||||
}
|
||||
|
||||
export async function getNetworkTime(): Promise<Date> {
|
||||
return new Promise(function(resolve: Function, reject: Function) {
|
||||
ntpClient().getNetworkTime(server.domain, server.port, function(error: any, date: Date) {
|
||||
return new Promise((resolve: Function, reject: Function) => {
|
||||
ntpClient().getNetworkTime(server.domain, server.port, (error: any, date: Date) => {
|
||||
if (error) {
|
||||
reject(error);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user