Skip to content

Commit 4fb56f2

Browse files
committed
fixed errors
1 parent 6df61e0 commit 4fb56f2

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

facebox/facebox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (c *Client) Info() (*boxutil.Info, error) {
8383
return &info, nil
8484
}
8585

86-
// ErrFacebox represents an error from facebox.
86+
// ErrFacebox represents an error from Facebox.
8787
type ErrFacebox string
8888

8989
func (e ErrFacebox) Error() string {

fakebox/fakebox.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (c *Client) Check(title string, content string, u *url.URL) (*Analysis, err
157157
return nil, errors.Wrap(err, "decoding response")
158158
}
159159
if !response.Success {
160-
return nil, ErrNewsbox(response.Error)
160+
return nil, ErrFakebox(response.Error)
161161
}
162162
return &Analysis{
163163
Title: response.Title,
@@ -166,9 +166,9 @@ func (c *Client) Check(title string, content string, u *url.URL) (*Analysis, err
166166
}, nil
167167
}
168168

169-
// ErrNewsbox represents an error from fakebox.
170-
type ErrNewsbox string
169+
// ErrFakebox represents an error from Fakebox.
170+
type ErrFakebox string
171171

172-
func (e ErrNewsbox) Error() string {
172+
func (e ErrFakebox) Error() string {
173173
return "fakebox: " + string(e)
174174
}

nudebox/nudebox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (c *Client) parseCheckResponse(r io.Reader) (float64, error) {
179179
return checkResponse.Nude, nil
180180
}
181181

182-
// ErrNudebox represents an error from nudebox.
182+
// ErrNudebox represents an error from Nudebox.
183183
type ErrNudebox string
184184

185185
func (e ErrNudebox) Error() string {

tagbox/tagbox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ type CheckResponse struct {
7777
CustomTags []Tag `json:"custom_tags"`
7878
}
7979

80-
// ErrTagbox represents an error from tagbox.
80+
// ErrTagbox represents an error from Tagbox.
8181
type ErrTagbox string
8282

8383
func (e ErrTagbox) Error() string {

textbox/textbox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (c *Client) Check(r io.Reader) (*Analysis, error) {
147147
}, nil
148148
}
149149

150-
// ErrTextbox represents an error from textbox.
150+
// ErrTextbox represents an error from Textbox.
151151
type ErrTextbox string
152152

153153
func (e ErrTextbox) Error() string {

videobox/videobox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (c *Client) Info() (*boxutil.Info, error) {
7474
return &info, nil
7575
}
7676

77-
// ErrVideobox represents an error from facebox.
77+
// ErrVideobox represents an error from Videobox.
7878
type ErrVideobox string
7979

8080
func (e ErrVideobox) Error() string {

x/boxutil/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// Package boxutil is DEPCREATED. Use github.com/machinebox/sdk-go/boxutil instead.
1+
// Package boxutil is DEPCREATED and you should use github.com/machinebox/sdk-go/boxutil instead.
22
package boxutil

0 commit comments

Comments
 (0)