mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Use more async funcs in runtime/lib/api to reduce Promise creation
This commit is contained in:
@@ -38,10 +38,10 @@ var api = module.exports = {
|
||||
projects: require("./projects"),
|
||||
context: require("./context"),
|
||||
|
||||
isStarted: function(opts) {
|
||||
return Promise.resolve(runtime.isStarted());
|
||||
isStarted: async function(opts) {
|
||||
return runtime.isStarted();
|
||||
},
|
||||
version: function(opts) {
|
||||
return Promise.resolve(runtime.version());
|
||||
version: async function(opts) {
|
||||
return runtime.version();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user