Merge "Allow `unversioned_until: "current"`."

This commit is contained in:
Treehugger Robot 2017-01-06 05:14:37 +00:00 committed by Gerrit Code Review
commit 59bed87517
1 changed files with 8 additions and 0 deletions

View File

@ -162,6 +162,14 @@ func shouldUseVersionScript(stub *stubDecorator) (bool, error) {
return true, nil
}
if stub.properties.Unversioned_until == "current" {
if stub.properties.ApiLevel == "current" {
return true, nil
} else {
return false, nil
}
}
if stub.properties.ApiLevel == "current" {
return true, nil
}