Skip to content

Commit

Permalink
fixing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JediWattson committed Jan 26, 2023
1 parent 445c9f7 commit e54c4b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.
47 changes: 0 additions & 47 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -980,53 +980,6 @@ function buildOptimisticClosedReportAction(ownerEmail, policyName, reason = CONS
};
}

/**
* Returns the necessary reportAction onyx data to indicate that a chat has been archived
*
* @param {Number} sequenceNumber
* @param {String} ownerEmail
* @param {String} policyName
* @param {String} reason - A reason why the chat has been archived
* @returns {Object}
*/
function buildOptimisticClosedReportAction(sequenceNumber, ownerEmail, policyName, reason = CONST.REPORT.ARCHIVE_REASON.DEFAULT) {
return {
actionName: CONST.REPORT.ACTIONS.TYPE.CLOSED,
actorAccountID: currentUserAccountID,
automatic: false,
avatar: lodashGet(allPersonalDetails, [currentUserEmail, 'avatar'], getDefaultAvatar(currentUserEmail)),
clientID: NumberUtils.generateReportActionClientID(),
created: DateUtils.getDBTime(),
message: [
{
type: CONST.REPORT.MESSAGE.TYPE.TEXT,
style: 'strong',
text: ownerEmail === currentUserEmail ? 'You' : ownerEmail,
},
{
type: CONST.REPORT.MESSAGE.TYPE.TEXT,
style: 'normal',
text: ' closed this report',
},
],
originalMessage: {
policyName,
reason,
},
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
person: [
{
type: CONST.REPORT.MESSAGE.TYPE.TEXT,
style: 'strong',
text: lodashGet(allPersonalDetails, [currentUserEmail, 'displayName'], currentUserEmail),
},
],
reportActionID: NumberUtils.rand64(),
sequenceNumber,
shouldShow: true,
};
}

/**
* @param {String} policyID
* @param {String} policyName
Expand Down
1 change: 0 additions & 1 deletion src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import ROUTES from '../../ROUTES';
import * as OptionsListUtils from '../OptionsListUtils';
import DateUtils from '../DateUtils';
import * as ReportUtils from '../ReportUtils';
import * as Report from './Report';
import Log from '../Log';

const allPolicies = {};
Expand Down

0 comments on commit e54c4b8

Please sign in to comment.