diff options
author | Christopher Baines <mail@cbaines.net> | 2019-09-29 17:12:20 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2019-09-29 17:12:20 +0100 |
commit | e486ba6274c965b6f369dadeb2a8a5f598b56132 (patch) | |
tree | af708f12c6685d2b6fbc887219d68267d2602855 | |
parent | b90e6289ac4c370e746170a03eb1d1c696103abf (diff) | |
download | data-service-e486ba6274c965b6f369dadeb2a8a5f598b56132.tar data-service-e486ba6274c965b6f369dadeb2a8a5f598b56132.tar.gz |
Remove a redundant query condition
The git_branches.commits column doesn't allow NULL values.
-rw-r--r-- | guix-data-service/model/git-branch.scm | 2 |
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 |