Skip to content

Commit

Permalink
openflights.js: Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
reedy committed Nov 18, 2023
1 parent b4a9ae3 commit 8824dcf
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions openflights.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
*/

// Core map features
var map,
proj,
selectControl,
selectedFeature,
lineLayer,
currentPopup;
var map, proj, selectControl, selectedFeature, lineLayer, currentPopup;
var paneStack = ["ad"];

// User settings (defaults)
Expand Down Expand Up @@ -1028,8 +1023,8 @@ function xmlhttpPost(strURL, id, param) {

case "RELOAD":
param = lastDesc;
// param contains previously escaped semi-random HTML title
// fallthru
// param contains previously escaped semi-random HTML title
// fallthru

case "MAP":
default:
Expand Down Expand Up @@ -2826,11 +2821,14 @@ function updateTop10() {
function editPointer(offset) {
var newPtr = fidPtr + offset;
if (newPtr >= 0 && newPtr < fidList.length) {
if (hasChanged() && !confirm(
if (
hasChanged() &&
!confirm(
gt.gettext(
"Changes made to this flight have not been saved. OK to discard them?"
"Changes made to this flight have not been saved. OK to discard them?"
)
) ) {
)
) {
return;
}
// Load new flight
Expand Down

0 comments on commit 8824dcf

Please sign in to comment.