Skip to content

Commit

Permalink
Use 'PrintStatusUtil' in cmd/add
Browse files Browse the repository at this point in the history
  • Loading branch information
anglee committed Oct 20, 2022
1 parent 1f923c4 commit c370405
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/lib/cmd/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"use strict";

const co = require("co");
const PrintStatusUtil = require('../util/print_status_util.js');

/**
* This module contains methods for implementing the `add` command.
Expand Down Expand Up @@ -111,7 +112,7 @@ exports.executeableSubcommand = co.wrap(function *(args) {
untrackedFilesOption: args.untrackedFilesOption
});

const fileStatuses = exports.accumulateStatus(repoStatus);
const fileStatuses = PrintStatusUtil.accumulateStatus(repoStatus);
const workdirChanges = fileStatuses.workdir;
userPaths = workdirChanges.map(workdirChange => {
return workdirChange.path;
Expand Down

0 comments on commit c370405

Please sign in to comment.