Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 3828a03

Browse files
committed
lint/doc
1 parent 8ea5577 commit 3828a03

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/core/components/repo.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ module.exports = function repo (self) {
1111
/**
1212
* If the repo has been initialized, report the current version.
1313
* Otherwise report the version that would be initialized.
14+
*
15+
* @param {function(Error, Number)} [callback]
16+
* @returns {undefined}
1417
*/
1518
version: (callback) => {
1619
self._repo._isInitialized(err => {

test/cli/files.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
'use strict'
33

44
const expect = require('chai').expect
5-
const fs = require('fs')
6-
const path = require('path')
75
const compareDir = require('dir-compare').compareSync
86
const rimraf = require('rimraf').sync
97
const runOnAndOff = require('../utils/on-and-off')

test/cli/version.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const fs = require('fs')
54
const os = require('os')
6-
const path = require('path')
75
const expect = require('chai').expect
86
const repoVersion = require('ipfs-repo').repoVersion
97
const pkgversion = require('../../package.json').version
@@ -36,7 +34,7 @@ describe('version', () => runOnAndOff((thing) => {
3634
)
3735
)
3836

39-
describe('handles --all', function() {
37+
describe('handles --all', function () {
4038
it('prints js-ipfs version', () =>
4139
ipfs('version --all').then(out =>
4240
expect(out).to.include(`js-ipfs version: ${pkgversion}`)

0 commit comments

Comments
 (0)