Skip to content

Commit 3881f6d

Browse files
committed
SOF-7449: use get method
1 parent 5cad86d commit 3881f6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/context/providers/PlanewaveCutoffsContextProvider.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class PlanewaveCutoffsContextProvider extends mix(ContextProvider).with(
4040
return cutoffConfig[this.application.name];
4141
}
4242

43-
getCutoffsFromPseudos = () => {
43+
get cutoffsFromPseudos() {
4444
const pseudos = this.methodData.pseudo || [];
4545
let ecutwfc = 0;
4646
let ecutrho = 0;
@@ -63,11 +63,11 @@ export class PlanewaveCutoffsContextProvider extends mix(ContextProvider).with(
6363
});
6464

6565
return [ecutwfc, ecutrho];
66-
};
66+
}
6767

6868
get defaultECUTWFC() {
6969
if (["espresso", "qe"].includes(this.application.shortName)) {
70-
const [ecutwfc] = this.getCutoffsFromPseudos();
70+
const [ecutwfc] = this.cutoffsFromPseudos;
7171

7272
if (ecutwfc > 0) {
7373
return ecutwfc;
@@ -79,7 +79,7 @@ export class PlanewaveCutoffsContextProvider extends mix(ContextProvider).with(
7979

8080
get defaultECUTRHO() {
8181
if (["espresso", "qe"].includes(this.application.shortName)) {
82-
const [, ecutrho] = this.getCutoffsFromPseudos();
82+
const [, ecutrho] = this.cutoffsFromPseudos;
8383

8484
if (ecutrho > 0) {
8585
return ecutrho;

0 commit comments

Comments
 (0)