Skip to content

Commit

Permalink
Merge branch 'main' into 312555022
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiYou-TW committed Mar 7, 2024
2 parents 00de90b + 95502c6 commit de2d968
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 6 additions & 2 deletions lab2/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class MailSystem {
send(name, context) {
console.log('--send mail to ' + name + '--');
// Interact with mail system and send mail
sleep(1000);
// random success or failure
const success = Math.random() > 0.5;
if (success) {
Expand Down Expand Up @@ -74,4 +73,9 @@ class Application {
// app.selectNextPerson();
// app.selectNextPerson();
// app.selectNextPerson();
// app.notifySelected();
// app.notifySelected();

module.exports = {
Application,
MailSystem,
};
8 changes: 1 addition & 7 deletions scripts/rebase-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,12 @@ for branch in $(git branch -r | grep -v HEAD); do
echo "Checkout failed for branch $branch"
exit 1
fi
git pull origin "$branch"
if [[ $? -ne 0 ]]; then
echo "Pull failed for branch $branch"
exit 1
fi
git rebase main
if [[ $? -ne 0 ]]; then
echo "Rebase failed for branch $branch"
exit 1
fi
git push origin "$branch"
fi
done

git checkout main
git checkout main

0 comments on commit de2d968

Please sign in to comment.