Skip to content

Commit

Permalink
[core] Misc branch cleaning (mui#21459)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Jun 16, 2020
1 parent 17e8ccc commit f1246e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ workflows:
branches:
only:
- master
- next
jobs:
- test_unit:
react-dist-tag: next
Expand All @@ -256,5 +257,6 @@ workflows:
branches:
only:
- master
- next
jobs:
- test_types_next
7 changes: 6 additions & 1 deletion scripts/sizeSnapshot/loadComparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ async function loadCurrentSnapshot() {
* @param {string} commitId - the sha of a commit
* @param {string} ref - the branch containing that commit
*/
async function loadSnapshot(commitId, ref = 'master') {
async function loadSnapshot(commitId, ref) {
if (ref === undefined) {
throw new TypeError(
`Need a ref for that commit. Did you mean \`loadSnapshot(commitId, 'master')\`?`,
);
}
const response = await fetch(`${artifactServer}/artifacts/${ref}/${commitId}/size-snapshot.json`);
return response.json();
}
Expand Down

0 comments on commit f1246e8

Please sign in to comment.