Skip to content

Commit dc4cf0f

Browse files
committed
fix: lint
Signed-off-by: imusmanmalik <[email protected]>
1 parent 729f8bc commit dc4cf0f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pkg/packageinstall/app.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ const (
3434
)
3535

3636
var (
37-
// Default syncPeriod value for App
37+
// DefaultSyncPeriod value for App
3838
DefaultSyncPeriod = &metav1.Duration{Duration: time.Minute * 10}
3939
)
4040

41+
// NewApp creates a new instance of v1alpha1.App based on the provided parameters.
42+
// It takes an existingApp, pkgInstall, pkgVersion, and opts, and returns the newly created App.
4143
func NewApp(existingApp *v1alpha1.App, pkgInstall *pkgingv1alpha1.PackageInstall, pkgVersion datapkgingv1alpha1.Package, opts Opts) (*v1alpha1.App, error) {
4244
desiredApp := existingApp.DeepCopy()
4345

pkg/packageinstall/packageinstall.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ type PackageInstallCR struct {
5555
compInfo ComponentInfo
5656
opts Opts
5757
}
58+
59+
// nolint: revive
5860
type Opts struct {
5961
DefaultSyncPeriod time.Duration
6062
}

0 commit comments

Comments
 (0)