summaryrefslogtreecommitdiff
path: root/server/src/db_utils.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-01-26 21:58:42 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-01-26 21:58:42 +0100
commit9e80b8cd1e44fcf863d926055d9fa458db46e0d3 (patch)
tree1fd262ac79127e60d91f9e7efac9702ec3058cdb /server/src/db_utils.rs
parent42334c32226f0ff3248d6d0c7641b7170ca962ce (diff)
Add basic git support
Pushing a commit to a new branch creates a review. Each project has its own git directory, with githooks installed that talkes with server process via unix sockets.
Diffstat (limited to 'server/src/db_utils.rs')
-rw-r--r--server/src/db_utils.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/db_utils.rs b/server/src/db_utils.rs
index b7e1fd5..ccc07ff 100644
--- a/server/src/db_utils.rs
+++ b/server/src/db_utils.rs
@@ -95,11 +95,11 @@ where
pub fn ok(&self) -> bool {
self.sanity_check();
- return !self
+ !self
.names
.as_ref()
.expect("BUG: names taken already")
- .is_empty();
+ .is_empty()
}
pub fn build(&mut self) -> (String, <DB as HasArguments<'args>>::Arguments) {