Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Config: Version Management
Browse files Browse the repository at this point in the history
gbjk committed Nov 20, 2024
1 parent d6f3eb2 commit 8dde685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/versions/versions.go
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ func (m *manager) Deploy(ctx context.Context, j []byte) ([]byte, error) {
current64, err := jsonparser.GetInt(j, "version")
current := int(current64)
switch {
case err == jsonparser.KeyPathNotFoundError:
case errors.Is(err, jsonparser.KeyPathNotFoundError):
current = -1
case err != nil:
return j, fmt.Errorf("%w `version`: %w", common.ErrGettingField, err)

0 comments on commit 8dde685

Please sign in to comment.