Remove duplicate calls to GetFormFillEnv()

Prior to the merging of classes in
  https://pdfium-review.googlesource.com/c/pdfium/+/84154

there used to be two places to look for a form fill env,
but now there is only one, so some code which used to look
in the second place first now just looks in the first place
twice.

Change-Id: Id07dc907b3d224849f9291e4f0ece059ca48aa99
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/84272
Auto-Submit: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/fxjs/cjs_event_context.cpp b/fxjs/cjs_event_context.cpp
index 627b569..81eabde 100644
--- a/fxjs/cjs_event_context.cpp
+++ b/fxjs/cjs_event_context.cpp
@@ -63,9 +63,6 @@
     return nullptr;
 
   auto* pFormFillEnv = GetFormFillEnv();
-  if (!pFormFillEnv)
-    pFormFillEnv = GetFormFillEnv();
-
   auto* pJSDocument =
       static_cast<CJS_Document*>(CFXJS_Engine::GetObjectPrivate(pDocObj));
   pJSDocument->SetFormFillEnv(pFormFillEnv);
@@ -88,9 +85,6 @@
     return nullptr;
 
   auto* pFormFillEnv = GetFormFillEnv();
-  if (!pFormFillEnv)
-    pFormFillEnv = GetFormFillEnv();
-
   auto* pJSDocument =
       static_cast<CJS_Document*>(CFXJS_Engine::GetObjectPrivate(pDocObj));
   pJSDocument->SetFormFillEnv(pFormFillEnv);