Skip to content

Commit

Permalink
Test redundant braces around assignment body
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Sep 27, 2024
1 parent e2a3365 commit 2902568
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2039,3 +2039,33 @@ run { worklist.push(startBlock); }
run( { worklist.push(startBlock); } )
>>>
run({ worklist.push(startBlock); })
<<< #4133 rewrites with assignment and infix chain
maxColumn = 76
rewrite.redundantBraces {
maxLines = 100
ifElseExpressions = yes
}
===
hostLocalDirManager = {
if ((conf.get(config.SHUFFLE_HOST_LOCAL_DISK_READING_ENABLED) &&
!conf.get(config.SHUFFLE_USE_OLD_FETCH_PROTOCOL)) ||
Utils.isPushBasedShuffleEnabled(conf, isDriver)) {
None
}
}
>>>
Idempotency violated
=> Diff (- obtained, + expected)
-hostLocalDirManager =
- if (
- (conf.get(config.SHUFFLE_HOST_LOCAL_DISK_READING_ENABLED) &&
- !conf.get(config.SHUFFLE_USE_OLD_FETCH_PROTOCOL)) ||
- Utils.isPushBasedShuffleEnabled(conf, isDriver)
- )
- None
+hostLocalDirManager = if (
+ (conf.get(config.SHUFFLE_HOST_LOCAL_DISK_READING_ENABLED) &&
+ !conf.get(config.SHUFFLE_USE_OLD_FETCH_PROTOCOL)) ||
+ Utils.isPushBasedShuffleEnabled(conf, isDriver)
+)
+ None

0 comments on commit 2902568

Please sign in to comment.