Skip to content

Commit d99ed3e

Browse files
committed
refactor: remove unnecessary changes
1 parent 6cd143a commit d99ed3e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

compiler-core/src/warning.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,21 +1025,23 @@ See: https://tour.gleam.run/advanced-features/{name}/"
10251025
panic_position: unreachable_code_kind,
10261026
} => {
10271027
let text = match unreachable_code_kind {
1028-
PanicPosition::PreviousExpression => {
1029-
"This code is unreachable because it comes after a `panic`."
1030-
}
1031-
PanicPosition::PreviousFunctionArgument => {
1028+
PanicPosition::PreviousExpression =>
1029+
"This code is unreachable because it comes after a `panic`.",
1030+
PanicPosition::PreviousFunctionArgument =>
10321031
"This argument is unreachable because the previous one always panics. \
1033-
Your code will crash before reaching this point."
1034-
}
1035-
PanicPosition::LastFunctionArgument => {
1032+
Your code will crash before reaching this point.",
1033+
PanicPosition::LastFunctionArgument =>
10361034
"This function call is unreachable because its last argument always panics. \
1035+
<<<<<<< HEAD
10371036
Your code will crash before reaching this point."
10381037
}
10391038
PanicPosition::EchoExpression => {
10401039
"This `echo` won't print anything because the expression it \
10411040
should be printing always panics."
10421041
}
1042+
=======
1043+
Your code will crash before reaching this point.",
1044+
>>>>>>> 8fbfe3026 (refactor: remove unnecessary changes)
10431045
};
10441046

10451047
Diagnostic {

0 commit comments

Comments
 (0)