Skip to content

Commit

Permalink
added more concise suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Brent Bovenzi <brent.bovenzi@gmail.com>
  • Loading branch information
lh5844 and bbovenzi committed Aug 13, 2024
1 parent 61c5a20 commit 2015964
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions airflow/www/static/js/connection_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,7 @@ $(document).ready(() => {
* @param {string} message - The text message to show in alert box
*/
function displayAlert(status, message) {
let alertClass;
if (status === "success") {
alertClass = "alert-success";
} else if (status === "error") {
alertClass = "alert-error";
} else if (status === "warning") {
alertClass = "alert-warning";
}
const alertClass = `alert-${status}`;
let alertBox = $(".container .row .alert");
if (alertBox.length) {
alertBox.removeClass("alert-success").removeClass("alert-error");
Expand Down

0 comments on commit 2015964

Please sign in to comment.