Skip to content

Commit

Permalink
remove unused import
Browse files Browse the repository at this point in the history
Signed-off-by: Dhiraj Bokde <[email protected]>
  • Loading branch information
dhirajsb committed Jan 22, 2025
1 parent dddca22 commit f120c99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/gen_openapi_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ if [[ $(uname) == "Darwin" ]]; then
sed -i '' 's/, sortOrderParam/, model.SortOrder(sortOrderParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_registry_service.go
sed -i '' 's/, orderByParam/, model.OrderByField(orderByParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go
sed -i '' 's/, sortOrderParam/, model.SortOrder(sortOrderParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go
# remove unused import
sed -i '' '/encoding\/json/d' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go
else
sed -i 's/, orderByParam/, model.OrderByField(orderByParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_registry_service.go
sed -i 's/, sortOrderParam/, model.SortOrder(sortOrderParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_registry_service.go
sed -i 's/, orderByParam/, model.OrderByField(orderByParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go
sed -i 's/, sortOrderParam/, model.SortOrder(sortOrderParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go
# remove unused import
sed -i '/encoding\/json/d' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go
fi

echo "Assembling type_assert Go file"
Expand Down

0 comments on commit f120c99

Please sign in to comment.