-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix float
marshal, unmarshall functions
#313
Conversation
8ce5e89
to
62153cd
Compare
marshal.go
Outdated
@@ -9,6 +9,7 @@ import ( | |||
"encoding/binary" | |||
"errors" | |||
"fmt" | |||
"github.com/gocql/gocql/serialization/float" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be below with other gocql/serialization imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
serialization/float/marshal.go
Outdated
switch v := value.(type) { | ||
case nil: | ||
return nil, nil | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this new line needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted
serialization/float/unmarshal.go
Outdated
switch v := value.(type) { | ||
case nil: | ||
return nil | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary new line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@illia-li , all good, please get rid of empty lines
62153cd
to
1f85aa2
Compare
Changes:
no error
before, now return an error.