Skip to content

Commit

Permalink
Daily arc lint --take KTFMT
Browse files Browse the repository at this point in the history
Reviewed By: nicholeic

Differential Revision: D51341469

fbshipit-source-id: 2399f1dc1c91d2dbac4a30e8ead177a993c01a76
  • Loading branch information
generatedunixname89002005325672 authored and facebook-github-bot committed Nov 17, 2023
1 parent 9218180 commit 737dc86
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package com.facebook.rendercore.sample

import android.app.Activity
import android.os.Bundle
import android.util.Pair
import com.facebook.rendercore.DefaultNode
import com.facebook.rendercore.DefaultTextNode
import com.facebook.rendercore.RenderState
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ class LazyMeasureHostView(context: Context) : HostView(context), RenderCoreExten
// We could run into the case that mounting a tree ends up requesting another mount.
// We need to keep re-mounting until the mounted renderTree matches the currentRenderResult.
var retries = 0
while (lazyRenderTreeProvider != this.lazyRenderTreeProvider ||
currentRenderResult == null) {
while (lazyRenderTreeProvider != this.lazyRenderTreeProvider || currentRenderResult == null) {
if (retries > RootHostDelegate.MAX_REMOUNT_RETRIES) {
ErrorReporter.report(
LogLevel.ERROR,
Expand Down

0 comments on commit 737dc86

Please sign in to comment.