func fileBlobstoreChanged()

in controllers/blobstore/chain/crete_file_blobstore.go [78:90]


func fileBlobstoreChanged(newNexusBlobStore, nexusBlobStore *blobstore.File) bool {
	if newNexusBlobStore.Path != nexusBlobStore.Path {
		return true
	}

	if newNexusBlobStore.SoftQuota != nil && nexusBlobStore.SoftQuota != nil {
		return newNexusBlobStore.SoftQuota.Limit != nexusBlobStore.SoftQuota.Limit ||
			newNexusBlobStore.SoftQuota.Type != nexusBlobStore.SoftQuota.Type
	}

	return (newNexusBlobStore.SoftQuota != nil && nexusBlobStore.SoftQuota == nil) ||
		(newNexusBlobStore.SoftQuota == nil && nexusBlobStore.SoftQuota != nil)
}