We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 138ab2d commit 2b23250Copy full SHA for 2b23250
1 file changed
src/cli.ts
@@ -1,7 +1,7 @@
1
import { EnumType } from "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/enum.ts";
2
import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts";
3
4
-import { registryKeys, registryReg, registrys } from "./constant.ts";
+import { line, registryKeys, registryReg, registrys } from "./constant.ts";
5
import { getConfig } from "./config.ts";
6
import { printListRegistrys } from "./registrys.ts";
7
import { version } from "./version.ts";
@@ -33,7 +33,6 @@ export async function action() {
33
newConfigText = `registry=${url}`;
34
} else if (!registryReg.test(configText)) {
35
// append
36
- const line = "\n";
37
let newRegistryText = `registry=${url}`;
38
if (!configText.endsWith(line)) {
39
newRegistryText = line + newConfigText;
0 commit comments