Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Jun 12, 2024
1 parent fdabe38 commit 9974f53
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,7 @@ public void run() {
if (mShouldLogContentAppeared) {
mShouldLogContentAppeared = false;
String jsModuleName = getJSModuleName();
if (jsModuleName != null) {
ReactMarker.logMarker(ReactMarkerConstants.CONTENT_APPEARED, jsModuleName, mRootViewTag);
}
ReactMarker.logMarker(ReactMarkerConstants.CONTENT_APPEARED, jsModuleName, mRootViewTag);
}
}

Expand Down Expand Up @@ -632,7 +630,7 @@ public void setEventListener(@Nullable ReactRootViewEventListener eventListener)

@Override
public String getJSModuleName() {
return mJSModuleName;
return Assertions.assertNotNull(mJSModuleName);
}

@Override
Expand Down

0 comments on commit 9974f53

Please sign in to comment.