Skip to content

Commit

Permalink
fix(command:new): 生成 custom 类型 provider 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed May 5, 2020
1 parent 99d1548 commit be83268
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hygen-template/provider/new/template.ejs.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { utils } = require('surgio');

module.exports = {
type: '<%= type %>',
<% if (url) { -%>
<% if (typeof url !== 'undefined') { -%>
url: '<%= url %>',
<% } -%>
<% if (type === 'custom') { -%>
Expand All @@ -17,10 +17,10 @@ module.exports = {
<% if (addFlag === true) { -%>
addFlag: true,
<% } -%>
<% if (udpRelay === true) { -%>
<% if (typeof udpRelay !== 'undefined' && udpRelay === true) { -%>
udpRelay: true,
<% } -%>
<% if (relayUrl === true) { -%>
<% if (typeof relayUrl !== 'undefined' && relayUrl === true) { -%>
relayUrl: true,
<% } -%>
};
Expand Down

0 comments on commit be83268

Please sign in to comment.