Skip to content

Commit e047831

Browse files
committed
Fix code formatting
1 parent 77b2d1e commit e047831

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/thealgorithms/ciphers/RailFenceCipher.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* @author https://github.com/Krounosity
1010
*/
1111

12-
1312
public class RailFenceCipher {
1413

1514
// Encrypts the input string using the rail fence cipher method with the given number of rails.
@@ -52,8 +51,7 @@ else if (row == rails - 1) {
5251
// Move to the next row based on the direction.
5352
if (down) {
5453
row++;
55-
}
56-
else {
54+
} else {
5755
row--;
5856
}
5957

0 commit comments

Comments
 (0)