Get rid of unused skipTableCheck (#39)

This commit is contained in:
Tao Jiang 2019-10-03 20:45:34 -05:00 committed by Tao Jiang
parent 46fea317de
commit 4f79203f44

View file

@ -61,7 +61,6 @@ type DynamoCheckpoint struct {
svc dynamodbiface.DynamoDBAPI
kclConfig *config.KinesisClientLibConfiguration
Retries int
skipTableCheck bool
}
func NewDynamoCheckpoint(kclConfig *config.KinesisClientLibConfiguration) *DynamoCheckpoint {
@ -103,7 +102,7 @@ func (checkpointer *DynamoCheckpoint) Init() error {
checkpointer.svc = dynamodb.New(s)
}
if !checkpointer.skipTableCheck && !checkpointer.doesTableExist() {
if !checkpointer.doesTableExist() {
return checkpointer.createTable()
}
return nil