aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-09-29 17:12:20 +0100
committerChristopher Baines <mail@cbaines.net>2019-09-29 17:12:20 +0100
commite486ba6274c965b6f369dadeb2a8a5f598b56132 (patch)
treeaf708f12c6685d2b6fbc887219d68267d2602855 /guix-data-service
parentb90e6289ac4c370e746170a03eb1d1c696103abf (diff)
downloaddata-service-e486ba6274c965b6f369dadeb2a8a5f598b56132.tar
data-service-e486ba6274c965b6f369dadeb2a8a5f598b56132.tar.gz
Remove a redundant query condition
The git_branches.commits column doesn't allow NULL values.
Diffstat (limited to 'guix-data-service')
-rw-r--r--guix-data-service/model/git-branch.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix-data-service/model/git-branch.scm b/guix-data-service/model/git-branch.scm
index 466172f..fa50d55 100644
--- a/guix-data-service/model/git-branch.scm
+++ b/guix-data-service/model/git-branch.scm
@@ -134,7 +134,7 @@ SELECT DISTINCT ON (name)
) AS job_events
FROM git_branches
LEFT OUTER JOIN guix_revisions ON git_branches.commit = guix_revisions.commit
-WHERE git_branches.commit IS NOT NULL AND git_branches.git_repository_id = $1
+WHERE git_branches.git_repository_id = $1
ORDER BY name, datetime DESC"))
(map