Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfce1f9

Browse files
committed
Remove useless default clause in switch
The switch covers all values of the enum driver variable, so having a default: clause is useless, even if it's only to do Assert(false).
1 parent a5ab892 commit dfce1f9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/backend/partitioning/partprune.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -836,10 +836,6 @@ gen_partprune_steps_internal(GeneratePruningStepsContext *context,
836836
case PARTCLAUSE_UNSUPPORTED:
837837
/* This clause cannot be used for pruning. */
838838
break;
839-
840-
default:
841-
Assert(false);
842-
break;
843839
}
844840

845841
/* done; go check the next clause. */

0 commit comments

Comments
 (0)