Skip to content

Commit 6abf39f

Browse files
committed
fix client 304
1 parent d7f470d commit 6abf39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codersdk/notifications.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (c *Client) PutNotificationsSettings(ctx context.Context, settings Notifica
3232
}
3333
defer res.Body.Close()
3434

35-
if res.StatusCode == http.StatusNoContent {
35+
if res.StatusCode == http.StatusNotModified {
3636
return xerrors.New("notifications settings not modified")
3737
}
3838
if res.StatusCode != http.StatusOK {

0 commit comments

Comments
 (0)