Skip to content

Commit

Permalink
cleanup pkg names and pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Jun 3, 2020
1 parent 4e34e63 commit 94ca1fe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ type DeserializationError struct {

// Error returns a formatted error for DeserializationError
func (e *DeserializationError) Error() string {
return fmt.Sprintf("deserialization failed, %v", e.Err)
const msg = "deserialization failed"
if e.Err == nil {
return msg
}
return fmt.Sprintf("%s, %v", msg, e.Err)
}

// Unwrap returns the underlying Error in DeserializationError
Expand Down
2 changes: 1 addition & 1 deletion io/byte.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sdkio
package io

const (
// Byte is 8 bits
Expand Down
2 changes: 2 additions & 0 deletions io/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package io provides utilities for Smithy generated API clients.
package io
2 changes: 1 addition & 1 deletion io/ringbuffer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sdkio
package io

import "io"

Expand Down
2 changes: 1 addition & 1 deletion io/ringbuffer_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sdkio
package io

import (
"bytes"
Expand Down

0 comments on commit 94ca1fe

Please sign in to comment.