Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Fix exception when all options are passed via environment variables (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 committed Apr 20, 2020
1 parent 2d8dc56 commit 56fec9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/skyapm-egg-require/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

"use strict";

const args = JSON.parse(process.argv.slice(2));
const argString = process.argv.slice(2);
const args = JSON.parse(!argString && argString.length > 0 ? argString : "{}");
let serviceName;
let directServers;
let authentication;
Expand Down

0 comments on commit 56fec9e

Please sign in to comment.