Skip to content

Commit 59d7328

Browse files
ADFA-5405: Correct the stale swap comment on serveRequest
The call it described, discardCachesIfDatabaseChanged(), was deleted two commits ago. The swap is applied by lookup()/withDatabase() inside the content source now, so a request reaching neither does not poll for one -- the opposite of what the comment led a reader to expect.
1 parent 6e6d865 commit 59d7328

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • app/src/main/java/com/itsaky/androidide/localWebServer

‎app/src/main/java/com/itsaky/androidide/localWebServer/WebServer.kt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@ class WebServer(
534534
return sendError(writer, output, 501, "Not Implemented")
535535
}
536536

537-
// serveRequest applies any pending sdcard debug-database swap via the content source.
537+
// The content source applies a pending sdcard debug-database swap inside lookup()/withDatabase(),
538+
// so a request reaching neither -- an unknown /pr/ target -- does not poll for one.
538539
serveRequest(writer, output, path)
539540
}
540541

0 commit comments

Comments
 (0)