Skip to content

Commit

Permalink
fix: server version comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Mueller <[email protected]>
  • Loading branch information
muellerst-hg committed Nov 6, 2024
1 parent 8714936 commit e33d68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (c Client) isServerVersionAtLeast(targetVersion string) bool {
}

func (c Client) assertServerVersionAtLeast(targetVersion string) error {
if c.isServerVersionAtLeast(targetVersion) {
if !c.isServerVersionAtLeast(targetVersion) {
return fmt.Errorf("server version must be at least %s, but is %s", targetVersion, c.about.Version)
}

Expand Down

0 comments on commit e33d68a

Please sign in to comment.