fix: make pre-commit hook executable

This commit is contained in:
t8y2 2026-05-25 10:56:03 +08:00
parent 9008169dd1
commit f874d98a9a
2 changed files with 5 additions and 1 deletions

0
.husky/pre-commit Normal file → Executable file
View File

View File

@ -141,7 +141,11 @@ fn format_pg_array_element(val: &serde_json::Value) -> String {
}
serde_json::Value::Number(n) => n.to_string(),
serde_json::Value::Bool(b) => {
if *b { "true".to_string() } else { "false".to_string() }
if *b {
"true".to_string()
} else {
"false".to_string()
}
}
serde_json::Value::Object(o) => {
let json = serde_json::to_string(o).unwrap_or_default();