Skip to content

Commit 664da0e

Browse files
Fix: remove extra Precondition constructor (#78)
1 parent c83d26d commit 664da0e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/restErrors.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ var CODES = {
2525
InvalidVersion: 400,
2626
MissingParameter: 409,
2727
NotAuthorized: 403,
28-
PreconditionFailed: 412,
2928
RequestExpired: 400,
3029
RequestThrottled: 429,
3130
ResourceNotFound: 404,

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ describe('restify-errors node module.', function() {
489489
// no good way to verify we got all the constructors, so it's hard
490490
// coded for now.
491491
// 16 built-in RestError subclasses
492-
assert.equal(_.size(restErrors), 16);
492+
assert.equal(_.size(restErrors), 15);
493493

494494
// ensure each one has a displayName that ends in 'Error'
495495
// then try to new up one of each.

0 commit comments

Comments
 (0)