mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Mention return type
This commit is contained in:
parent
5a0c06473c
commit
08ef84d112
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export function mergeMap<K, V>(src: Map<K, V> | undefined, dst: Map<K, V>) {
|
export function mergeMap<K, V>(src: Map<K, V> | undefined, dst: Map<K, V>): void {
|
||||||
if (src) {
|
if (src) {
|
||||||
for (const [key, value] of src.entries()) {
|
for (const [key, value] of src.entries()) {
|
||||||
dst.set(key, value);
|
dst.set(key, value);
|
||||||
|
Loading…
Reference in New Issue
Block a user