diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-02-07 23:16:19 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-02-07 23:16:19 +0100 |
| commit | a9a000f40cb89fe8b4734061ebd4ca590cccc600 (patch) | |
| tree | 10e6b971ffa1138d47a67cb28c9a451632e91c3c /src/server/Utilities/SwaggerDefaultValues.cs | |
| parent | f59570acaecf2422001310a1d312565e8c61f263 (diff) | |
| download | bookmark-thing-a9a000f40cb89fe8b4734061ebd4ca590cccc600.tar.xz bookmark-thing-a9a000f40cb89fe8b4734061ebd4ca590cccc600.zip | |
chore: Cleanup warnings and unused code
Diffstat (limited to 'src/server/Utilities/SwaggerDefaultValues.cs')
| -rw-r--r-- | src/server/Utilities/SwaggerDefaultValues.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/Utilities/SwaggerDefaultValues.cs b/src/server/Utilities/SwaggerDefaultValues.cs index 24855ae..d0e46fe 100644 --- a/src/server/Utilities/SwaggerDefaultValues.cs +++ b/src/server/Utilities/SwaggerDefaultValues.cs @@ -40,7 +40,7 @@ public class SwaggerDefaultValues : IOperationFilter var description = apiDescription.ParameterDescriptions.First(p => p.Name == parameter.Name); if (parameter.Description == null) { - parameter.Description = description.ModelMetadata?.Description; + parameter.Description = description.ModelMetadata.Description; } if (parameter.Schema.Default == null && description.DefaultValue != null) { |
