Skip to content

Commit

Permalink
Remove redundant statement
Browse files Browse the repository at this point in the history
  • Loading branch information
canac committed Dec 21, 2023
1 parent 790e405 commit acc28e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/scripts/controllers/eventForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,13 @@ angular
var formSavingNotifyTimeout;

function saveForm() {
$timeout.cancel(formSavingTimeout);
if (formSaving) {
$timeout.cancel(formSavingTimeout);
formSavingTimeout = $timeout(function () {
saveForm();
}, 600);
return;
}
$timeout.cancel(formSavingTimeout);

formSaving = true;
let conferenceWithoutImage = angular.copy($scope.conference);
Expand Down

0 comments on commit acc28e5

Please sign in to comment.