Skip to content

Commit 4008596

Browse files
committed
Fix coding style
1 parent 3fe1a67 commit 4008596

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ln.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function _ln(options, source, dest) {
3636
dest = path.resolve(process.cwd(), String(dest));
3737

3838
if (fs.existsSync(dest) && common.statFollowLinks(dest).isDirectory(dest)) {
39-
dest = path.resolve(dest, path.basename(sourcePath))
39+
dest = path.resolve(dest, path.basename(sourcePath));
4040
}
4141

4242
if (fs.existsSync(dest)) {

test/ln.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test('destination already exists', t => {
5050

5151
test('destination already exists inside directory', t => {
5252
shell.cd(t.context.tmp);
53-
let result = shell.ln('-s', 'file1', './');
53+
const result = shell.ln('-s', 'file1', './');
5454
t.truthy(shell.error());
5555
t.is(result.code, 1);
5656
shell.cd('..');
@@ -147,7 +147,7 @@ test('To current directory', t => {
147147

148148
test('Inside existing directory', t => {
149149
shell.cd(t.context.tmp);
150-
let result = shell.ln('-s', 'external/node_script.js', './');
150+
const result = shell.ln('-s', 'external/node_script.js', './');
151151
t.is(result.code, 0);
152152
t.truthy(fs.existsSync('node_script.js'));
153153
t.is(

0 commit comments

Comments
 (0)