mirror of
https://github.com/actions/setup-python.git
synced 2026-11-02 05:01:18 +03:00
Initial pass
This commit is contained in:
commit
39c08a0eaa
7242 files changed
+1886006
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
const isPromise = input => (
|
||||
input instanceof Promise ||
|
||||
(
|
||||
input !== null &&
|
||||
typeof input === 'object' &&
|
||||
typeof input.then === 'function' &&
|
||||
typeof input.catch === 'function'
|
||||
)
|
||||
);
|
||||
|
||||
module.exports = isPromise;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = isPromise;
|
||||
Reference in new issue
Block a user