From dd328830dddffbe19e9addd7cf8532cbd3600816 Mon Sep 17 00:00:00 2001 From: Brandon Furtwangler Date: Mon, 8 Feb 2016 20:44:12 -0800 Subject: [PATCH] cleanup --- bluebird/bluebird-1.0.d.ts | 4 ++-- bluebird/bluebird.d.ts | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/bluebird/bluebird-1.0.d.ts b/bluebird/bluebird-1.0.d.ts index 2a43600d90..7979e8b6f8 100644 --- a/bluebird/bluebird-1.0.d.ts +++ b/bluebird/bluebird-1.0.d.ts @@ -319,9 +319,9 @@ declare class Promise implements Promise.Thenable { * * Alias for `attempt();` for compatibility with earlier ECMAScript version. */ - static try(fn: () => R|Promise.Thenable, args?: any[], ctx?: any): Promise; + static try(fn: () => R | Promise.Thenable, args?: any[], ctx?: any): Promise; - static attempt(fn: () => R|Promise.Thenable, args?: any[], ctx?: any): Promise; + static attempt(fn: () => R | Promise.Thenable, args?: any[], ctx?: any): Promise; /** * Returns a new function that wraps the given function `fn`. The new function will always return a promise that is fulfilled with the original functions return values or rejected with thrown exceptions from the original function. diff --git a/bluebird/bluebird.d.ts b/bluebird/bluebird.d.ts index a3cb988139..7a53d4e07b 100644 --- a/bluebird/bluebird.d.ts +++ b/bluebird/bluebird.d.ts @@ -51,15 +51,9 @@ interface PromiseConstructor { * * Alias for `attempt();` for compatibility with earlier ECMAScript version. */ -<<<<<<< HEAD - try(fn: () => T|PromiseLike, args?: any[], ctx?: any): Promise; - - attempt(fn: () => T|PromiseLike, args?: any[], ctx?: any): Promise; -======= try(fn: () => T | PromiseLike, args?: any[], ctx?: any): Promise; attempt(fn: () => T | PromiseLike, args?: any[], ctx?: any): Promise; ->>>>>>> 72f0056f69f9a2290d2589c1a692896d24406928 /** * Returns a new function that wraps the given function `fn`. The new function will always return a promise that is fulfilled with the original functions return values or rejected with thrown exceptions from the original function.