Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 08f7748

Browse files
committed
Error handling instead of panic, year corrected in license
1 parent 18bb38a commit 08f7748

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

plugin/processor/snap-plugin-processor-passthru-grpc/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
http://www.apache.org/licenses/LICENSE-2.0.txt
33
44
5-
Copyright 2015 Intel Corporation
5+
Copyright 2016 Intel Corporation
66
77
Licensed under the Apache License, Version 2.0 (the "License");
88
you may not use this file except in compliance with the License.

plugin/processor/snap-plugin-processor-passthru-grpc/main_small_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
http://www.apache.org/licenses/LICENSE-2.0.txt
55
66
7-
Copyright 2015 Intel Corporation
7+
Copyright 2016 Intel Corporation
88
99
Licensed under the Apache License, Version 2.0 (the "License");
1010
you may not use this file except in compliance with the License.

plugin/processor/snap-plugin-processor-passthru-grpc/passthru/passthru.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (p *passthruProcessor) GetConfigPolicy() (plugin.ConfigPolicy, error) {
3939
policy := plugin.NewConfigPolicy()
4040
rule, err := plugin.NewBoolRule(debug, false)
4141
if err != nil {
42-
panic(err)
42+
return *policy, err
4343
}
4444
policy.AddBoolRule([]string{""}, rule)
4545
return *policy, nil

0 commit comments

Comments
 (0)