Skip to content

Commit 9b3821b

Browse files
author
Damien LACHAUME / PALO-IT
committed
Fix make lint errors by running make format
1 parent 3032869 commit 9b3821b

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

mithril-explorer/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const nextConfig = {
1010
webpack: (config) => {
1111
config.experiments = { layers: true, asyncWebAssembly: true };
1212
return config;
13-
}
13+
},
1414
};
1515

1616
module.exports = nextConfig;

mithril-explorer/src/components/CertificateModal/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import RawJsonButton from "../RawJsonButton";
88
import Stake from "../Stake";
99
import ProtocolParameters from "../ProtocolParameters";
1010
import SignerTable from "../SignerTable";
11-
import VerifyCertificate from "../VerifyCertificate";
11+
import VerifyCertificate from "../VerifyCertificate";
1212

1313
export default function CertificateModal(props) {
1414
const [certificate, setCertificate] = useState({});
@@ -181,7 +181,11 @@ export default function CertificateModal(props) {
181181
)}
182182
<RawJsonButton href={certificateEndpoint} size="sm" />
183183
</Modal.Footer>
184-
<VerifyCertificate show={showVerifyCertificateModal} onClose={() => setShowVerifyCertificateModal(false)} certificateHash={certificate.hash} />
184+
<VerifyCertificate
185+
show={showVerifyCertificateModal}
186+
onClose={() => setShowVerifyCertificateModal(false)}
187+
certificateHash={certificate.hash}
188+
/>
185189
</Modal>
186190
);
187191
}

mithril-explorer/src/components/VerifyCertificate/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export default function VerifyCertificate({ show, onClose, certificateHash }) {
8080
displayEventInDOM("The certificate chain validation has started...");
8181
} else if (event.type === "CertificateValidated") {
8282
displayEventInDOM(
83-
"A certificate has been validated, hash: <strong>" + event.payload.certificate_hash + "<strong>",
83+
"A certificate has been validated, hash: <strong>" +
84+
event.payload.certificate_hash +
85+
"<strong>",
8486
);
8587
} else if (event.type === "CertificateChainValidated") {
8688
displayEventInDOM("<strong>The certificate chain is valid ✅<strong>");

mithril-explorer/src/utils.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,12 @@ function formatProcessDuration(startTime) {
8282
const duration = performance.now() - startTime;
8383
const minutes = Math.floor(duration / 60000);
8484
const seconds = Math.floor((duration % 60000) / 1000);
85-
return(
86-
minutes > 0 ? `${minutes} minutes and ${seconds} seconds` : `${seconds} seconds`
87-
);
85+
return minutes > 0 ? `${minutes} minutes and ${seconds} seconds` : `${seconds} seconds`;
8886
}
8987

9088
function computeAggregatorNetworkFromUrl(aggregatorUrl) {
9189
const network = aggregatorUrl.match(/aggregator\.(.*?)\.api/);
92-
return(network && network[1] ? network[1] : null);
90+
return network && network[1] ? network[1] : null;
9391
}
9492

9593
module.exports = {

0 commit comments

Comments
 (0)