Skip to content

Commit 2b23250

Browse files
committed
chore(use): using external line
1 parent 138ab2d commit 2b23250

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/cli.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { EnumType } from "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/enum.ts";
22
import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts";
33

4-
import { registryKeys, registryReg, registrys } from "./constant.ts";
4+
import { line, registryKeys, registryReg, registrys } from "./constant.ts";
55
import { getConfig } from "./config.ts";
66
import { printListRegistrys } from "./registrys.ts";
77
import { version } from "./version.ts";
@@ -33,7 +33,6 @@ export async function action() {
3333
newConfigText = `registry=${url}`;
3434
} else if (!registryReg.test(configText)) {
3535
// append
36-
const line = "\n";
3736
let newRegistryText = `registry=${url}`;
3837
if (!configText.endsWith(line)) {
3938
newRegistryText = line + newConfigText;

0 commit comments

Comments
 (0)