From 108441dd5af1d1035ff1b5359b3e3874f78ecb31 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 17 Oct 2018 14:42:48 +0200 Subject: [PATCH] Update cmdInterpreterAPI.js --- src/lib/cmdInterpreterAPI.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/cmdInterpreterAPI.js b/src/lib/cmdInterpreterAPI.js index db6edd77b8..18c42bce58 100644 --- a/src/lib/cmdInterpreterAPI.js +++ b/src/lib/cmdInterpreterAPI.js @@ -174,6 +174,7 @@ class CmdInterpreterAPI { } } setFile (path, content, cb) { + cb = cb || () => {} var provider = this._deps.fileManager.fileProviderOf(path) if (provider) { provider.set(path, content, (error) => {