Commit 71094ed
committed
Azure Function: avoid errors about
An Azure Function is supposed to either return a `Promise` or call
`context.done()`, otherwise the following error will be shown:
[Error] Error: Choose either to return a promise or call 'done'. Do
not use both in your script. Learn more:
https://go.microsoft.com/fwlink/?linkid=2097909
Since we do prefer to return a `Promise`, let's just skip the call to
`context.done()`.
To be sure, these error messages are only shown in the Azure Portal,
when a developer deigns to turn on and look at the logs. Anyway, this
_is_ an error, so let's do fix it.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>context.done()
1 parent ccd0025 commit 71094ed
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | | - | |
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
| |||
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
140 | | - | |
141 | | - | |
142 | 138 | | |
0 commit comments