Resolve xo rule errors

This commit is contained in:
George Gkasdrogkas 2018-09-18 14:48:05 +03:00
parent 8577e6dd58
commit 0f31446555
No known key found for this signature in database
GPG key ID: 3FCA70FC54D4293F
2 changed files with 2 additions and 2 deletions

View file

@ -199,7 +199,7 @@ function applyStyle(...args) {
}
function chalkTag(chalk, ...strings) {
const firstString = strings[0];
const [firstString] = strings;
if (!Array.isArray(firstString)) {
// If chalk() was called by itself or with a string,