mirror of
https://github.com/softprops/action-gh-release.git
synced 2026-10-31 18:48:35 +01:00
node_modules
This commit is contained in:
1 parent
29058f2f68
commit
a40b254993
445 files changed
+83959
-2
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
'use strict'
|
||||
|
||||
/**
|
||||
* Tries to execute a function and discards any error that occurs.
|
||||
* @param {Function} fn - Function that might or might not throw an error.
|
||||
* @returns {?*} Return-value of the function when no error occurred.
|
||||
*/
|
||||
module.exports = function(fn) {
|
||||
|
||||
try { return fn() } catch (e) {}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user