added pools #14
@ -40,7 +40,7 @@ func CreatePoolReference(ctx context.Context, poolID models.PoolID, sourceID mod
|
|||||||
return models.PoolReference{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDIsWrongLength})
|
return models.PoolReference{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDIsWrongLength})
|
||||||
Alphyron marked this conversation as resolved
Outdated
|
|||||||
}
|
}
|
||||||
|
|
||||||
if sourceID == "" {
|
if len(sourceID) == 0 {
|
||||||
return models.PoolReference{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.SourceIDIsEmpty})
|
return models.PoolReference{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.SourceIDIsEmpty})
|
||||||
Alphyron marked this conversation as resolved
Alphyron
commented
Either you use len(sourceID) == 0 like in pool.go or you use this method in pool.go. But not both! Either you use len(sourceID) == 0 like in pool.go or you use this method in pool.go. But not both!
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ func DeletePoolReference(ctx context.Context, poolID models.PoolID, sourceID mod
|
|||||||
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PostIDIsWrongLength})
|
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PostIDIsWrongLength})
|
||||||
Alphyron
commented
its not really to short, is just had a wrong length.... its not really to short, is just had a wrong length....
Alphyron
commented
Please recheck this, you want to check if the length nis not 25! Please recheck this, you want to check if the length nis not 25!
|
|||||||
}
|
}
|
||||||
|
|
||||||
if sourceID == "" {
|
if len(sourceID) == 0 {
|
||||||
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.SourceIDIsEmpty})
|
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.SourceIDIsEmpty})
|
||||||
Alphyron marked this conversation as resolved
Alphyron
commented
Either you use len(sourceID) == 0 like in pool.go or you use this method in pool.go. But not both! Either you use len(sourceID) == 0 like in pool.go or you use this method in pool.go. But not both!
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
its not really to short, is just had a wrong length....