Inlining suggested functions

This commit is contained in:
Amrita Dutta 2018-11-06 21:50:53 +00:00
parent 593363c5be
commit 369b2dae5e
1 changed files with 2 additions and 10 deletions

View File

@ -128,14 +128,6 @@ func (a *Artifact) isManagedImage() bool {
return a.ManagedImageResourceGroupName != ""
}
func (a *Artifact) osDiskSnapshot() bool {
return a.ManagedImageOSDiskSnapshotName != ""
}
func (a *Artifact) dataDiskSnapshot() bool {
return a.ManagedImageDataDiskSnapshotPrefix != ""
}
func (*Artifact) BuilderId() string {
return BuilderId
}
@ -170,10 +162,10 @@ func (a *Artifact) String() string {
buf.WriteString(fmt.Sprintf("ManagedImageName: %s\n", a.ManagedImageName))
buf.WriteString(fmt.Sprintf("ManagedImageId: %s\n", a.ManagedImageId))
buf.WriteString(fmt.Sprintf("ManagedImageLocation: %s\n", a.ManagedImageLocation))
if a.osDiskSnapshot() {
if a.ManagedImageOSDiskSnapshotName != "" {
buf.WriteString(fmt.Sprintf("ManagedImageOSDiskSnapshotName: %s\n", a.ManagedImageOSDiskSnapshotName))
}
if a.dataDiskSnapshot() {
if a.ManagedImageDataDiskSnapshotPrefix != "" {
buf.WriteString(fmt.Sprintf("ManagedImageDataDiskSnapshotPrefix: %s\n", a.ManagedImageDataDiskSnapshotPrefix))
}
} else {