Skip to content

Commit

Permalink
#1925 Null reference
Browse files Browse the repository at this point in the history
- Add ! for null reference possible
  • Loading branch information
delager committed Mar 30, 2023
1 parent cafa4b4 commit 57f0814
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ internal DevelopmentConfigHandler(IConfiguration config)

public override string MySQLConnectionString => this.config[MySQLConnectionStringKey]!;

public override string DbProvider => this.config.GetValue(DbProviderKey, DbProviders.PostgreSQL);
public override string DbProvider => this.config.GetValue(DbProviderKey, DbProviders.PostgreSQL)!;

public override string CloudProvider => this.config[CloudProviderKey];
public override string CloudProvider => this.config[CloudProviderKey]!;

public override string AWSAccess => this.config[AWSAccessKey];
public override string AWSAccessSecret => this.config[AWSAccessSecretKey];
public override string AWSRegion => this.config[AWSRegionKey];
public override string AWSS3StorageConnectionString => this.config[AWSS3StorageConnectionStringKey];
public override string AWSAccess => this.config[AWSAccessKey]!;
public override string AWSAccessSecret => this.config[AWSAccessSecretKey]!;
public override string AWSRegion => this.config[AWSRegionKey]!;
public override string AWSS3StorageConnectionString => this.config[AWSS3StorageConnectionStringKey]!;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ internal ProductionAWSConfigHandler(IConfiguration config)

public override string MySQLConnectionString => this.config[MySQLConnectionStringKey]!;

public override string DbProvider => this.config.GetValue(DbProviderKey, DbProviders.PostgreSQL);
public override string DbProvider => this.config.GetValue(DbProviderKey, DbProviders.PostgreSQL)!;

public override string CloudProvider => this.config[CloudProviderKey];
public override string CloudProvider => this.config[CloudProviderKey]!;

public override string AWSAccess => this.config[AWSAccessKey];
public override string AWSAccessSecret => this.config[AWSAccessSecretKey];
public override string AWSRegion => this.config[AWSRegionKey];
public override string AWSS3StorageConnectionString => this.config[AWSS3StorageConnectionStringKey];
public override string AWSAccess => this.config[AWSAccessKey]!;
public override string AWSAccessSecret => this.config[AWSAccessSecretKey]!;
public override string AWSRegion => this.config[AWSRegionKey]!;
public override string AWSS3StorageConnectionString => this.config[AWSS3StorageConnectionStringKey]!;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ internal ProductionAzureConfigHandler(IConfiguration config)
public override string LoRaKeyManagementApiVersion => this.config[LoRaKeyManagementApiVersionKey]!;

public override bool IdeasEnabled => this.config.GetValue(IdeasEnabledKey, false);
public override string IdeasUrl => this.config.GetValue(IdeasUrlKey, string.Empty);
public override string IdeasAuthenticationHeader => this.config.GetValue(IdeasAuthenticationHeaderKey, "Ocp-Apim-Subscription-Key");
public override string IdeasAuthenticationToken => this.config.GetValue(IdeasAuthenticationTokenKey, string.Empty);
public override string IdeasUrl => this.config.GetValue(IdeasUrlKey, string.Empty)!;
public override string IdeasAuthenticationHeader => this.config.GetValue(IdeasAuthenticationHeaderKey, "Ocp-Apim-Subscription-Key")!;
public override string IdeasAuthenticationToken => this.config.GetValue(IdeasAuthenticationTokenKey, string.Empty)!;

public override string CloudProvider => this.config[CloudProviderKey];
public override string CloudProvider => this.config[CloudProviderKey]!;

public override string AWSAccess => throw new NotImplementedException();

Expand Down

0 comments on commit 57f0814

Please sign in to comment.