Skip to content

Commit d4470dc

Browse files
committed
remove unused i18n key
1 parent 052a95d commit d4470dc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

sshdconfig/locales/en-us.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ failedToParse = "failed to parse: '%{input}'"
3131
failedToParseRoot = "failed to parse root: '%{input}'"
3232
invalidConfig = "invalid config: '%{input}'"
3333
unknownNodeType = "unknown node type: '%{node}'"
34-
unexpectedFalse = "unexpected 'false' for '%{input}'; expected 'yes' or 'no'"
3534
failedToParseChildNode = "failed to parse child node: '%{input}'"
3635
missingValueInChildNode = "missing value in child node: '%{input}'"
3736
missingKeyInChildNode = "missing key in child node: '%{input}'"
@@ -43,4 +42,4 @@ invalidValue = "operator is an invalid value for node"
4342
unknownNode = "unknown node: '%{kind}'"
4443

4544
[util]
46-
sshdNoHostkeys = "elevated security context required"
45+
sshdElevation = "elevated security context required"

sshdconfig/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn invoke_sshd_config_validation() -> Result<String, SshdConfigError> {
3232
.map_err(|e| SshdConfigError::CommandError(e.to_string()))?;
3333
if stderr.contains("sshd: no hostkeys available") || stderr.contains("Permission denied") {
3434
return Err(SshdConfigError::CommandError(
35-
t!("util.sshdNoHostkeys").to_string()
35+
t!("util.sshdElevation").to_string()
3636
));
3737
}
3838
Err(SshdConfigError::CommandError(stderr))

0 commit comments

Comments
 (0)